summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-14 00:16:31 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-14 00:16:31 +0000
commitf38a679be6f228977dd0880fa14ca0996f733bbb (patch)
treecc07c5f16b1af4c00606b5bc881bee7f361d2ccb /libc
parent80908df22df6d73847801a48f26380f996cf10c4 (diff)
fix sem funcs on 64bit arches
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/sysvipc/ipc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h
index 105232fea..071e55f44 100644
--- a/libc/misc/sysvipc/ipc.h
+++ b/libc/misc/sysvipc/ipc.h
@@ -1,8 +1,13 @@
#ifndef IPC_H
#define IPC_H
#include <syscall.h>
+#include <bits/wordsize.h>
-#define __IPC_64 0x100
+#if __WORDSIZE == 32
+# define __IPC_64 0x100
+#else
+# define __IPC_64 0x0
+#endif
#ifdef __NR_ipc