about summary refs log tree commit diff
path: root/src/ipc/msgctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc/msgctl.c')
-rw-r--r--src/ipc/msgctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipc/msgctl.c b/src/ipc/msgctl.c
index d50e395b..d1ff7c70 100644
--- a/src/ipc/msgctl.c
+++ b/src/ipc/msgctl.c
@@ -5,8 +5,8 @@
 int msgctl(int q, int cmd, struct msqid_ds *buf)
 {
 #ifdef SYS_msgctl
-	return syscall(SYS_msgctl, q, cmd, buf);
+	return syscall(SYS_msgctl, q, cmd | 0x100, buf);
 #else
-	return syscall(SYS_ipc, IPCOP_msgctl, q, cmd, buf);
+	return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | 0x100, 0, buf, 0);
 #endif
 }