X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fipc%2Fshmctl.c;h=ae6ce69ecd73053f1b1c53ee0b35c73c85addfb0;hb=4f346b08b33c9265c36fe8a14f5f908b1a9f296a;hp=3645fe2d8d1010061973e000332deb136b9026e8;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/ipc/shmctl.c b/src/ipc/shmctl.c index 3645fe2d..ae6ce69e 100644 --- a/src/ipc/shmctl.c +++ b/src/ipc/shmctl.c @@ -4,9 +4,9 @@ int shmctl(int id, int cmd, struct shmid_ds *buf) { -#ifdef __NR_shmctl - return syscall(SYS_shmctl, id, cmd, buf); +#ifdef SYS_shmctl + return syscall(SYS_shmctl, id, cmd | IPC_MODERN, buf); #else - return syscall(SYS_ipc, IPCOP_shmctl, id, cmd | IPC_MODERN, buf); + return syscall(SYS_ipc, IPCOP_shmctl, id, cmd | IPC_MODERN, 0, buf, 0); #endif }