From 266ae826f8660d485daba069a921ec1ebc68a46d Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sun, 24 Apr 2005 19:29:39 +0000 Subject: Fix bug 222: Move all archs to newer __IPC_64 interface for {msg,sem,shm}ctl syscalls. This won't work on 2.2 kernels(I think). --- libc/misc/sysvipc/msgq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc/sysvipc/msgq.c') diff --git a/libc/misc/sysvipc/msgq.c b/libc/misc/sysvipc/msgq.c index d4f48e7ad..411ea3ea4 100644 --- a/libc/misc/sysvipc/msgq.c +++ b/libc/misc/sysvipc/msgq.c @@ -6,12 +6,12 @@ #ifdef L_msgctl #ifdef __NR_msgctl -_syscall3(int, msgctl, int, msqid, int, cmd, struct msqid_ds *, buf); +_syscall3(int, msgctl, int, msqid, int, cmd | __IPC_64, struct msqid_ds *, buf); #else /* Message queue control operation. */ int msgctl (int msqid, int cmd, struct msqid_ds *buf) { - return __syscall_ipc(IPCOP_msgctl ,msqid ,cmd ,0 ,buf); + return __syscall_ipc(IPCOP_msgctl ,msqid ,cmd | __IPC_64 ,0 ,buf); } #endif #endif -- cgit v1.2.3