diff options
Diffstat (limited to 'include/semaphore.h')
-rw-r--r-- | include/semaphore.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/semaphore.h b/include/semaphore.h index 5b68986d..2e9b8100 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -4,10 +4,16 @@ extern "C" { #endif +#define __NEED_time_t +#define __NEED_struct_timespec +#include <bits/alltypes.h> + +#include <fcntl.h> + #define SEM_FAILED ((sem_t *)0) typedef struct { - long __val[4]; + int __val[4*sizeof(long)/sizeof(int)]; } sem_t; int sem_close(sem_t *); |