diff options
author | deischen <deischen@FreeBSD.org> | 2004-02-03 22:27:03 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-02-03 22:27:03 +0000 |
commit | 90537c745ad92c472851318898b4b66be4a89aef (patch) | |
tree | 1c9088b62e8762eff2dc25f9a5ba56f4f1d4e035 /sys/posix4 | |
parent | 0000067319a197c517553b4bd00eeca22fbbb7bb (diff) | |
download | FreeBSD-src-90537c745ad92c472851318898b4b66be4a89aef.zip FreeBSD-src-90537c745ad92c472851318898b4b66be4a89aef.tar.gz |
The sem_timedwait() and ksem_timedwait() functions both
need struct timespec, so define it here.
Discussed in: standards (wollman)
Diffstat (limited to 'sys/posix4')
-rw-r--r-- | sys/posix4/_semaphore.h | 1 | ||||
-rw-r--r-- | sys/posix4/semaphore.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/posix4/_semaphore.h b/sys/posix4/_semaphore.h index 2c330e8..91106ff 100644 --- a/sys/posix4/_semaphore.h +++ b/sys/posix4/_semaphore.h @@ -29,6 +29,7 @@ #define __SEMAPHORE_H_ typedef intptr_t semid_t; +struct timespec; #ifndef _KERNEL diff --git a/sys/posix4/semaphore.h b/sys/posix4/semaphore.h index f451d5f..1806252 100644 --- a/sys/posix4/semaphore.h +++ b/sys/posix4/semaphore.h @@ -47,6 +47,8 @@ typedef struct sem * sem_t; #ifndef _KERNEL #include <sys/cdefs.h> +struct timespec; + __BEGIN_DECLS int sem_close(sem_t *); int sem_destroy(sem_t *); |