summaryrefslogtreecommitdiff
path: root/include/semaphore.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-01 00:30:44 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-01 00:30:44 +0200
commit14d1fbe7ddd74c10039b062dbb49e64804715fff (patch)
treee4496f40ab54b9645eafe44de1f5ec5efb29407c /include/semaphore.h
parentceb6f7e2181a42f75e26bb2ea00b9e16752b1009 (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>
Diffstat (limited to 'include/semaphore.h')
-rw-r--r--include/semaphore.h5
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