diff options
author | rpj <rpj> | 1999-05-29 07:30:57 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-05-29 07:30:57 +0000 |
commit | 8b12efcf4c673dada68d5c42a4eb8d23134f09c4 (patch) | |
tree | f4b07373bfb118bceed2ca5e833a2d173343913e /semaphore.h | |
parent | 0103da82bdf86764129c3b1e57c0496af1bb91ab (diff) |
Sun May 30 00:25:02 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* semaphore.h (mode_t): Conditionally typedef it.
Diffstat (limited to 'semaphore.h')
-rw-r--r-- | semaphore.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |