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)


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.

> 	* configure.in: Always define _GNU_SOURCE to make interfaces
> 	visible that were hidden by only defining _GNU_SOURCE.

Ok


-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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