about summary refs log tree commit diff
path: root/src/unistd/setgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/setgid.c')
-rw-r--r--src/unistd/setgid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/setgid.c b/src/unistd/setgid.c
index 42976d95..e98a2982 100644
--- a/src/unistd/setgid.c
+++ b/src/unistd/setgid.c
@@ -5,5 +5,5 @@
 int setgid(gid_t gid)
 {
 	if (libc.rsyscall) return libc.rsyscall(__NR_setgid, gid, 0, 0, 0, 0, 0);
-	return syscall1(__NR_setgid, gid);
+	return syscall(SYS_setgid, gid);
 }