summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 495a68cb1..079e77903 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -32,7 +32,7 @@
# if defined __USE_XOPEN || defined __USE_XOPEN2K
# define __need_time_t
# endif
-# if defined __USE_MISC || defined __USE_ATFILE
+# if defined __USE_MISC || defined __USE_ATFILE || defined __USE_XOPEN2K8
# define __need_timespec
# endif
# include <time.h> /* For time_t resp. timespec. */