This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fixed build failure on Linux in cppfiles (_XOPEN_SOURCE is evil)
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Fixed build failure on Linux in cppfiles (_XOPEN_SOURCE is evil)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 Sep 2000 09:33:55 -0300
- Cc: gcc-patches at gcc dot gnu dot org, Tom Tromey <tromey at cygnus dot com>
- Organization: GCC Team, Red Hat
- References: <u866nwrddm.fsf@gromit.rhein-neckar.de>
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