summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1999-05-29 07:30:57 +0000
committerrpj <rpj>1999-05-29 07:30:57 +0000
commit8b12efcf4c673dada68d5c42a4eb8d23134f09c4 (patch)
treef4b07373bfb118bceed2ca5e833a2d173343913e
parent0103da82bdf86764129c3b1e57c0496af1bb91ab (diff)
Sun May 30 00:25:02 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* semaphore.h (mode_t): Conditionally typedef it.
-rw-r--r--ChangeLog4
-rw-r--r--semaphore.h5
2 files changed, 8 insertions, 1 deletions
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 <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