This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Fixed build failure on Linux in cppfiles (_XOPEN_SOURCE is evil)


>>>>> Alexandre Oliva writes:

 > On Sep 16, 2000, Andreas Jaeger <aj@suse.de> 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.

 > Ok
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]