diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-14 00:16:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-14 00:16:31 +0000 |
commit | f38a679be6f228977dd0880fa14ca0996f733bbb (patch) | |
tree | cc07c5f16b1af4c00606b5bc881bee7f361d2ccb | |
parent | 80908df22df6d73847801a48f26380f996cf10c4 (diff) |
fix sem funcs on 64bit arches
-rw-r--r-- | libc/misc/sysvipc/ipc.h | 7 |
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 |