summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-01-02 07:51:18 +0000
committerAndreas Jaeger <aj@suse.de>2003-01-02 07:51:18 +0000
commitc67e25b445c12e639224b7c2a0ce6ff589cf62fa (patch)
treea15f6e6265f7fee22d44cd6c2cbda5a9ffb48fa6 /io
parentfd8979e483df0871606889a02bf3a97f3c01eac8 (diff)
downloadglibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.tar.gz
glibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.tar.xz
glibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.zip
Include time.h with __need_timespec even if __USE_MISC is defined but __USE_XOPEN is not.
Diffstat (limited to 'io')
-rw-r--r--io/sys/stat.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 3136dd96b8..24e7fe309f 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1995-2001,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995-2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,13 +27,17 @@
 
 #include <bits/types.h>		/* For __mode_t and __dev_t.  */
 
-#ifdef __USE_XOPEN
+#if defined __USE_XOPEN || defined __USE_MISC
+# ifdef __USE_XOPEN
+#  define __need_time_t
+# endif
 # ifdef __USE_MISC
 #  define __need_timespec
 # endif
-# define __need_time_t
-# include <time.h>		/* For time_t.  */
+# include <time.h>		/* For time_t resp. timespec.  */
+#endif
 
+#ifdef __USE_XOPEN
 /* The Single Unix specification says that some more types are
    available here.  */
 # ifndef __dev_t_defined