summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/setpgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/setpgid.c')
-rw-r--r--libc/sysdeps/linux/common/setpgid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/setpgid.c b/libc/sysdeps/linux/common/setpgid.c
index 144ffa959..3447b999d 100644
--- a/libc/sysdeps/linux/common/setpgid.c
+++ b/libc/sysdeps/linux/common/setpgid.c
@@ -8,6 +8,8 @@
*/
#include <sys/syscall.h>
+
+#if defined __USE_UNIX98 || defined __USE_SVID
#include <unistd.h>
libc_hidden_proto(setpgid)
@@ -21,3 +23,4 @@ int setpgid(pid_t pid, pid_t pgid)
return (__syscall_setpgid(pid, pgid));
}
libc_hidden_def(setpgid)
+#endif