fix IPC_64 in msgctl too

This commit is contained in:
Rich Felker
2012-09-22 08:04:17 -04:00
parent fce46bf980
commit cccc13221d
3 changed files with 4 additions and 6 deletions

View File

@ -10,3 +10,5 @@ struct ipc_perm
long __pad1; long __pad1;
long __pad2; long __pad2;
}; };
#define IPC_64 0

View File

@ -5,8 +5,8 @@
int msgctl(int q, int cmd, struct msqid_ds *buf) int msgctl(int q, int cmd, struct msqid_ds *buf)
{ {
#ifdef SYS_msgctl #ifdef SYS_msgctl
return syscall(SYS_msgctl, q, cmd | 0x100, buf); return syscall(SYS_msgctl, q, cmd | IPC_64, buf);
#else #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 #endif
} }

View File

@ -3,10 +3,6 @@
#include "syscall.h" #include "syscall.h"
#include "ipc.h" #include "ipc.h"
#ifndef IPC_64
#define IPC_64 0
#endif
int semctl(int id, int num, int cmd, ...) int semctl(int id, int num, int cmd, ...)
{ {
long arg; long arg;