[PATCH v3 48/48] libc/ipc: Allow architectures to define their own __IPC_64 macro
Markos Chandras
markos.chandras at gmail.com
Wed Jan 23 11:42:12 UTC 2013
From: Markos Chandras <markos.chandras at imgtec.com>
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 at imgtec.com>
---
libc/misc/sysvipc/ipc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h
index 339d136..fa2ff90 100644
--- a/libc/misc/sysvipc/ipc.h
+++ b/libc/misc/sysvipc/ipc.h
@@ -3,11 +3,13 @@
#include <syscall.h>
#include <bits/wordsize.h>
+#ifndef __IPC_64
#if __WORDSIZE == 32 || defined __alpha__ || defined __mips__
# define __IPC_64 0x100
#else
# define __IPC_64 0x0
#endif
+#endif
#ifdef __NR_ipc
--
1.8.1.1
More information about the uClibc
mailing list