This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [glibc] <sys/stat.h>: Use Linux UAPI header for statx if available and useful
* Andreas Schwab:
> On Jun 25 2019, Florian Weimer <fweimer@redhat.com> wrote:
>
>> It's been reported that this now breaks:
>>
>> #define __ASSEMBLER__ 1
>> #include <sys/stat.h>
>>
>> This is because <linux/types.h> does not define __u64 under these
>> circumstances.
>>
>> I don't think defining __ASSEMBLER__ is a supported scenario.
>
> __ASSEMBLER__ is defined by -xassembler-with-cpp, but <sys/stat.h> is
> not an assembler header.
Sorry for being unclear. Someone is using __ASSEMBLER__ to inhibit type
definitions in kernel headers. There is a literal “#define
__ASSEMBLER__ 1” in the source code. I assume this is to get access to
kernel header constants while avoid conflicts with glibc headers.
This is not about an .S file include <sys/stat.h>; it's fairly obvious
that this wouldn't make sense.
Thanks,
Florian