[PATCH] sys/stat.h fix
Andreas Jaeger
aj@suse.de
Thu Jan 2 07:51:00 GMT 2003
Jakub Jelinek <jakub@redhat.com> writes:
> Hi!
>
> echo '#include <sys/stat.h>' | gcc -c -xc -
> fails with:
> In file included from /usr/include/sys/stat.h:101,
> from <stdin>:1:
> /usr/include/bits/stat.h:70: field `st_atim' has incomplete type
> /usr/include/bits/stat.h:71: field `st_mtim' has incomplete type
> /usr/include/bits/stat.h:72: field `st_ctim' has incomplete type
>
> The problem is that time.h is included in sys/stat.h only if
> __USE_XOPEN. The following patch reorganizes it so that
> time.h is included even if defined __USE_MISC && !defined __USE_XOPEN
> (in that case just with __need_timespec defined).
Thanks, committed,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list