summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io/sys/stat.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d6183dbe8..31b56a78d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
+ struct timespec definition.
+
2017-04-19 Florian Weimer <fweimer@redhat.com>
* resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 2ada4a5e3a..ac7ef1f572 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -26,7 +26,7 @@
#include <bits/types.h> /* For __mode_t and __dev_t. */
-#ifdef __USE_ATFILE
+#ifdef __USE_XOPEN2K8
# include <bits/types/struct_timespec.h>
#endif