diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | semaphore.h | 5 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun May 30 00:25:02 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au> + + * semaphore.h (mode_t): Conditionally typedef it. + Fri May 28 13:33:05 1999 Ross Johnson <rpj@swan.canberra.edu.au> * condvar.c (pthread_cond_broadcast): Fix possible memory fault diff --git a/semaphore.h b/semaphore.h index e05cc4a..fb475a0 100644 --- a/semaphore.h +++ b/semaphore.h @@ -38,7 +38,9 @@ extern "C" { #endif /* __cplusplus */ +#if defined(_MSC_VER) typedef unsigned int mode_t; +#endif typedef HANDLE sem_t; @@ -61,7 +63,8 @@ int sem_post (sem_t * sem int sem_open (const char * name, int oflag, - ... + mode_t mode, + unsigned int value ); int sem_close (sem_t * sem |