diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2012-10-25 12:04:02 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-02-20 13:45:13 +0100 |
commit | 6c2fa3451f35f8d78a31689044b2d19efa4eaca2 (patch) | |
tree | cab009a014bdc4a3937aa27b0a7f331bac53f973 | |
parent | 634e74f630772fe2eb0e731d8a5cd35cf4a0da79 (diff) |
libc/ipc: Allow architectures to define their own __IPC_64 macro
New architectures don't define ARCH_WANT_IPC_PARSE_VERSION in their kernel.
This means that every cmd passed to semctl,msgctl and shmctl is IPC_64 by
default. For these architectures we need to define __IPC_64 as 0. Existing
architectures are not affected by this change.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/misc/sysvipc/ipc.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h index 339d1364b..5b861aeef 100644 --- a/libc/misc/sysvipc/ipc.h +++ b/libc/misc/sysvipc/ipc.h @@ -3,10 +3,12 @@ #include <syscall.h> #include <bits/wordsize.h> -#if __WORDSIZE == 32 || defined __alpha__ || defined __mips__ -# define __IPC_64 0x100 -#else -# define __IPC_64 0x0 +#ifndef __IPC_64 +# if __WORDSIZE == 32 || defined __alpha__ || defined __mips__ +# define __IPC_64 0x100 +# else +# define __IPC_64 0x0 +# endif #endif #ifdef __NR_ipc |