Browse Source

In unistd.h, getpgrp() is redirected to __getpgid(), but
we did not have a __getpgid(). Fix that.

Eric Andersen 21 years ago
parent
commit
5fb172f624
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libc/sysdeps/linux/common/syscalls.c

+ 3 - 1
libc/sysdeps/linux/common/syscalls.c

@@ -1477,12 +1477,14 @@ _syscall4(int, quotactl, int, cmd, const char *, special , int, id, caddr_t, add
 //#define __NR_getpgid          132
 #ifdef L___syscall_getpgid
 #define __NR___syscall_getpgid __NR_getpgid
+#define __FAVOR_BSD
 static inline
 _syscall1(__kernel_pid_t, __syscall_getpgid, __kernel_pid_t, pid);
-pid_t getpgid(pid_t pid)
+pid_t __getpgid(pid_t pid)
 {
 	return(__syscall_getpgid(pid));
 }
+weak_alias(__getpgid, getpgid);
 #endif
 
 //#define __NR_fchdir           133