summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getpgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getpgid.c')
-rw-r--r--libc/sysdeps/linux/common/getpgid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getpgid.c b/libc/sysdeps/linux/common/getpgid.c
index cf1c0fc6e..8e7516f12 100644
--- a/libc/sysdeps/linux/common/getpgid.c
+++ b/libc/sysdeps/linux/common/getpgid.c
@@ -15,8 +15,11 @@
#define __NR___syscall_getpgid __NR_getpgid
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));
}
+#ifdef __USE_XOPEN_EXTENDED
+weak_alias(__getpgid,getpgid)
+#endif
#endif