aboutsummaryrefslogtreecommitdiff
path: root/misc/sys/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sys/select.h')
-rw-r--r--misc/sys/select.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/sys/select.h b/misc/sys/select.h
index b852dac2d8..52dd94fe01 100644
--- a/misc/sys/select.h
+++ b/misc/sys/select.h
@@ -39,7 +39,9 @@ typedef __sigset_t sigset_t;
/* Get definition of timer specification structures. */
#define __need_time_t
-#define __need_timespec
+#ifdef __USE_XOPEN2K
+# define __need_timespec
+#endif
#include <time.h>
#define __need_timeval
#include <bits/time.h>