Mike Frysinger 19 лет назад
Родитель
Сommit
f38a679be6
1 измененных файлов с 6 добавлено и 1 удалено
  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