diff options
author | Andreas Jaeger <aj@suse.de> | 2003-01-02 07:51:18 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2003-01-02 07:51:18 +0000 |
commit | c67e25b445c12e639224b7c2a0ce6ff589cf62fa (patch) | |
tree | a15f6e6265f7fee22d44cd6c2cbda5a9ffb48fa6 /io | |
parent | fd8979e483df0871606889a02bf3a97f3c01eac8 (diff) | |
download | glibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.zip glibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.tar.gz glibc-c67e25b445c12e639224b7c2a0ce6ff589cf62fa.tar.bz2 |
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.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index 3136dd9..24e7fe3 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 |