mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-25 15:42:06 +03:00
fix IPC_64 in msgctl too
This commit is contained in:
parent
fce46bf980
commit
cccc13221d
@ -10,3 +10,5 @@ struct ipc_perm
|
||||
long __pad1;
|
||||
long __pad2;
|
||||
};
|
||||
|
||||
#define IPC_64 0
|
||||
|
@ -5,8 +5,8 @@
|
||||
int msgctl(int q, int cmd, struct msqid_ds *buf)
|
||||
{
|
||||
#ifdef SYS_msgctl
|
||||
return syscall(SYS_msgctl, q, cmd | 0x100, buf);
|
||||
return syscall(SYS_msgctl, q, cmd | IPC_64, buf);
|
||||
#else
|
||||
return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | 0x100, 0, buf, 0);
|
||||
return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | IPC_64, 0, buf, 0);
|
||||
#endif
|
||||
}
|
||||
|
@ -3,10 +3,6 @@
|
||||
#include "syscall.h"
|
||||
#include "ipc.h"
|
||||
|
||||
#ifndef IPC_64
|
||||
#define IPC_64 0
|
||||
#endif
|
||||
|
||||
int semctl(int id, int num, int cmd, ...)
|
||||
{
|
||||
long arg;
|
||||
|
Loading…
Reference in New Issue
Block a user