about summary refs log tree commit diff
path: root/src/ipc/semctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc/semctl.c')
-rw-r--r--src/ipc/semctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c
index 392a4aac..df05ec74 100644
--- a/src/ipc/semctl.c
+++ b/src/ipc/semctl.c
@@ -10,7 +10,7 @@ int semctl(int id, int num, int cmd, ...)
 	va_start(ap, cmd);
 	arg = va_arg(ap, long);
 	va_end(ap);
-#ifdef __NR_semctl
+#ifdef SYS_semctl
 	return syscall(SYS_semctl, id, num, cmd, arg);
 #else
 	return syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | 0x100, &arg);