diff options
Diffstat (limited to 'include/semaphore.h')
-rw-r--r-- | include/semaphore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/semaphore.h b/include/semaphore.h index 20d46f0d..277c47d6 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -15,7 +15,7 @@ extern "C" { #define SEM_FAILED ((sem_t *)0) typedef struct { - int __val[4*sizeof(long)/sizeof(int)]; + volatile int __val[4*sizeof(long)/sizeof(int)]; } sem_t; int sem_close(sem_t *); |