This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: wrong htons() used?
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: wrong htons() used?
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Mon, 25 Oct 1999 11:26:15 +0100
- Cc: Grant Edwards <grante at visi dot com>, "J.T. Conklin" <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
> More seriously, why is <netinet/in.h> picking up the wrong endian.h?
> Has this always happened or has something else recently changed?
Probably because it goes
#include <endian.h>
and is then compiled with a -I somewhere_with_a_different_endian.h
If I understand gcc's include searching rules properly, netinet/in.h
should probably go
#include "../endian.h"
so that it will start the search will start from netinet rather than using
the include path.
R.