X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fipc%2Fmsgctl.c;h=d1ff7c70b494b99f2f2cadcbbfe0e3b6a9a25aca;hb=695111036821f73870d8d7b4ba072368fc8f7941;hp=7c84291c2f63c33ddb9ba42f22148aafef5769f0;hpb=8bb82b4e58cb4dedb276151c47a799c1e51af230;p=musl diff --git a/src/ipc/msgctl.c b/src/ipc/msgctl.c index 7c84291c..d1ff7c70 100644 --- a/src/ipc/msgctl.c +++ b/src/ipc/msgctl.c @@ -4,9 +4,9 @@ int msgctl(int q, int cmd, struct msqid_ds *buf) { -#ifdef __NR_msgctl - return syscall(SYS_msgctl, q, cmd, buf); +#ifdef SYS_msgctl + 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 }