aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-10 22:58:45 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-10 22:58:45 +0000
commitf9bf102dd663c2e498e7755bb4bd35d79c8dc37b (patch)
treedc349b8da85f09a2251cd1492ce8cba4e7a9374c /io
parentc27d2078135ca3df129850f87598660252d6906a (diff)
downloadglibc-f9bf102dd663c2e498e7755bb4bd35d79c8dc37b.tar
glibc-f9bf102dd663c2e498e7755bb4bd35d79c8dc37b.tar.gz
glibc-f9bf102dd663c2e498e7755bb4bd35d79c8dc37b.tar.bz2
glibc-f9bf102dd663c2e498e7755bb4bd35d79c8dc37b.zip
* io/sys/stat.h: Make sure struct timespec is defined for
__USE_ATFILE.
Diffstat (limited to 'io')
-rw-r--r--io/sys/stat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 2ffa4fc669..e90eafd3ac 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -28,11 +28,12 @@
#include <bits/types.h> /* For __mode_t and __dev_t. */
-#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC
+#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
+ || __USE_ATFILE
# if defined __USE_XOPEN || defined __USE_XOPEN2K
# define __need_time_t
# endif
-# ifdef __USE_MISC
+# if defined __USE_MISC || defined __USE_ATFILE
# define __need_timespec
# endif
# include <time.h> /* For time_t resp. timespec. */