wrong htons() used?
Richard Earnshaw
rearnsha@arm.com
Mon Oct 25 03:26:00 GMT 1999
> 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.
More information about the Gdb
mailing list