diff options
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h b/nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h index bb5eade6b3..57edbbbfb3 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h @@ -21,8 +21,13 @@ # error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead." #endif +#include <bits/wordsize.h> -#define __SIZEOF_SEM_T 32 +#if __WORDSIZE == 64 +# define __SIZEOF_SEM_T 32 +#else +# define __SIZEOF_SEM_T 16 +#endif /* Value returned if `sem_open' failed. */ |