diff options
Diffstat (limited to 'include/semaphore.h')
-rw-r--r-- | include/semaphore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/semaphore.h b/include/semaphore.h index 8acb768..06c9e73 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -45,10 +45,12 @@ extern int sem_wait (sem_t *sem); without blocking. */ extern int sem_trywait (sem_t *sem); +#ifdef __USE_XOPEN2K /* Perform a down operation on semaphore *SEM but don't wait longer than TIMEOUT. */ extern int sem_timedwait (sem_t *__restrict sem, const struct timespec *__restrict timeout); +#endif /* Perform an up operation on semaphore *SEM. */ extern int sem_post (sem_t *sem); |