This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


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: [glibc] <sys/stat.h>: Use Linux UAPI header for statx if available and useful


* H. J. Lu:

>> > diff --git a/sysdeps/unix/sysv/linux/bits/statx.h b/sysdeps/unix/sysv/linux/bits/statx.h
>> > index d36f44efc6..206878723f 100644
>> > --- a/sysdeps/unix/sysv/linux/bits/statx.h
>> > +++ b/sysdeps/unix/sysv/linux/bits/statx.h
>> > @@ -23,8 +23,11 @@
>> >  #endif
>> >
>> >  /* Use the Linux kernel header if available.  */
>> > -#if __glibc_has_include (<linux/stat.h>)
>> > -# include <linux/stat.h>
>> > +
>> > +/* Use "" to work around incorrect macro expansion of the
>> > +   __has_include argument (GCC PR 80005).  */
>> > +#if __glibc_has_include ("linux/stat.h")
>> > +# include "linux/stat.h"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> This may have caused:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=24752

This has also been reported as bug 24532, which predates the commit.

Thanks,
Florian


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