This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sys/stat.h fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]