Browse Source

fix sem funcs on 64bit arches

Mike Frysinger 19 years ago
parent
commit
f38a679be6
1 changed files with 6 additions and 1 deletions
  1. 6 1
      libc/misc/sysvipc/ipc.h

+ 6 - 1
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