diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-01 00:30:44 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-09-01 00:43:15 +0200 |
commit | b1905e805d9a04b3dc624eadb506401c1a064812 (patch) | |
tree | 7dd0aa7d61353b6f96c3859f8be9d28b01d0cfdf | |
parent | 49416f663c6092cb37b3d1fb6e4b3d34c73a3fd6 (diff) |
Fix inclusion of semaphore.h before sys/types.h
* include/semaphore.h: Include <sys/types.h>
[__USE_XOPEN2K]: Define __need_timespec and include <time.h>
-rw-r--r-- | include/semaphore.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/semaphore.h b/include/semaphore.h index 657e796..5c05a72 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -20,6 +20,11 @@ #define _SEMAPHORE_H 1 #include <features.h> +#include <sys/types.h> +#ifdef __USE_XOPEN2K +# define __need_timespec +# include <time.h> +#endif __BEGIN_DECLS |