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)
On Sep 16, 2000, Mark Mitchell <mark@codesourcery.com> wrote:
>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>>> Defining these macros unconditionally on all systems is a
>>> mistake.
Alexandre> Agreed. I just approved the patch to get the tree in a
Alexandre> buildable state again, at least on GNU/Linux.
> OK, I'm glad you agree.
Alexandre> I think we could leave the tree as is for the next
Alexandre> snapshot and see what breaks, then decide our next
Alexandre> step.
> In general, when we leave something be, we don't come back to it.
If it doesn't cause problems on the 15+ platforms I build weekly, it's
unlikely to cause much trouble to anybody else :-)
> - Experimentally determine which of these macros are needed.
> This is analagous to trying the inclusion of several different
> header files hoping to get a declaration of some function foo,
> where different systems put it in different header files.
This is the autoconf way.
> - Notice that we are using glibc, or particular versions of glibc,
> and turn on the defines there, since we know what they will do.
But this is probably the way to go at this time.
--
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