This is the mail archive of the
mailing list for the GCC project.
Re: Fixed build failure on Linux in cppfiles (_XOPEN_SOURCE is evil)
>>>>> Alexandre Oliva writes:
> On Sep 16, 2000, Andreas Jaeger <email@example.com> wrote:
>> The definition of _XOPEN_SOURCE on a glibc 2.1. based systems hides
>> getpagesize and caddr_t since both are BSD features. We should either
>> define also _GNU_SOURCE or _BSD_SOURCE.
> How about defining both? I guess not all OSs understand _GNU_SOURCE,
> but some that understand _XOPEN_SOURCE may also accept _BSD_SOURCE.
I don't know enough about other OSes to make an educated guess here.
I leave the decision to others. For now Linux systems are back to
bootstrap land (the change survived a full bootstrap).
>> * configure.in: Always define _GNU_SOURCE to make interfaces
>> visible that were hidden by only defining _GNU_SOURCE.
SuSE Labs firstname.lastname@example.org