mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
fix IPC_64 in msgctl too
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user