linux-mips
[Top] [All Lists]

Re: CVS Update@-mips.org: linux

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: CVS Update@-mips.org: linux
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 10 Sep 2003 10:51:04 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <Pine.GSO.3.96.1030909153721.18373A-100000@delta.ds2.pg.gda.pl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030909113150Z8225348-1272+5180@linux-mips.org> <Pine.GSO.3.96.1030909153721.18373A-100000@delta.ds2.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Tue, Sep 09, 2003 at 03:40:44PM +0200, Maciej W. Rozycki wrote:

> >     Avoid conflict with glibc on bigendian platforms when -O or higher
> >     is specified.  It's already in 2.6, and I'm not sure why it hasn't
> >     been seen in 2.4.  The symptom is that this program will not compile
> >     with -O2:
> >     
> >     #include <asm/byteorder.h>
> >     #include <netinet/in.h>
> >     int main () { }
> 
>  Is <asm/byteorder.h> ever included by glibc headers?  I hope not and user
> programs *must* not include kernel headers.  Your program is buggy.

I'd not have accepted such a patch for exactly that reason if it wasn't
already in 2.6.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>