diff options
Diffstat (limited to 'libc/misc/sysvipc/ipc.h')
| -rw-r--r-- | libc/misc/sysvipc/ipc.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h index 105232fea..ffc07daf9 100644 --- a/libc/misc/sysvipc/ipc.h +++ b/libc/misc/sysvipc/ipc.h @@ -1,14 +1,19 @@ #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 /* The actual system call: all functions are multiplexed by this. */ -extern int __syscall_ipc __P((unsigned int __call, int __first, int __second, - int __third, void *__ptr)) attribute_hidden; +extern int __syscall_ipc (unsigned int __call, int __first, int __second, + int __third, void *__ptr) attribute_hidden; /* The codes for the functions to use the multiplexer `__syscall_ipc'. */ |
