From 8b12efcf4c673dada68d5c42a4eb8d23134f09c4 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 29 May 1999 07:30:57 +0000 Subject: Sun May 30 00:25:02 1999 Ross Johnson * semaphore.h (mode_t): Conditionally typedef it. --- ChangeLog | 4 ++++ semaphore.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e73b62..611a83f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 30 00:25:02 1999 Ross Johnson + + * semaphore.h (mode_t): Conditionally typedef it. + Fri May 28 13:33:05 1999 Ross Johnson * 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 -- cgit v1.2.3