summaryrefslogtreecommitdiff
path: root/io/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/fcntl.h')
-rw-r--r--io/fcntl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 1a92a8d738..cb706b4f0f 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -71,9 +71,11 @@ typedef __pid_t pid_t;
#endif
/* For XPG all symbols from <sys/stat.h> should also be available. */
-#if defined __USE_XOPEN || defined __USE_XOPEN2K8
+#ifdef __USE_XOPEN2K8
# define __need_timespec
# include <time.h>
+#endif
+#if defined __USE_XOPEN || defined __USE_XOPEN2K8
# include <bits/stat.h>
# define S_IFMT __S_IFMT