This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: wrong htons() used?
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: wrong htons() used?
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 22 Oct 1999 17:10:58 +0100
- Cc: grante at visi dot com, jtc at redback dot com, Grant dot Edwards at comtrol dot com, gdb at sourceware dot cygnus dot com
- Cc: richard dot earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: richard dot earnshaw at arm dot com
> Date: Fri, 22 Oct 1999 16:26:01 +0100
> From: Richard Earnshaw <rearnsha@arm.com>
>
> > I thing the best option is to rename rdi-share/endian.h so that it
> > doesn't shadow /usr/include/endian.h. rdi-share/endian.h doesn't
> > appeart to be some strictly local stuff and not intented as a
> > replacement for /usr/include/endian.h.
>
> And maybe while they are fixing it they can track down and shoot the glibc
> person who put another non-standard header in a standard place...
>
> I'm not sure but isn't <endian.h> standard on modern BSD?
Not on NetBSD at any rate; it's sys/endian.h and/or machine/endian.h --
each brings in the other as required. Either way it makes the whole
system much more robust against this sort of grottyness.