diff options
Diffstat (limited to 'linuxthreads/semaphore.h')
-rw-r--r-- | linuxthreads/semaphore.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h index 9f01a7f4fa..0740962902 100644 --- a/linuxthreads/semaphore.h +++ b/linuxthreads/semaphore.h @@ -21,8 +21,11 @@ #define SEM_VALUE_MAX INT_MAX -/* Get the semaphore structure definition. */ -#include <bits/semaphore.h> +typedef struct { + struct { long status; int spinlock; } sem_lock; + int sem_value; + _pthread_descr sem_waiting; +} sem_t; __BEGIN_DECLS |