* headers for htonl etc.?
@ 2000-01-03 5:00 Alex Rhomberg
0 siblings, 0 replies; only message in thread
From: Alex Rhomberg @ 2000-01-03 5:00 UTC (permalink / raw)
Which files do I need to include to get definitions of htonl etc.?
I tried to #include <asm/byteorder.h>. I get some (inlined) definitions,
but they are incompatible with <netinet/in.h>, which I sometimes need
for other stuff (INADDR_ANY)
If I #include <netinet/in.h>, it can't find the functions to link with.
In netinet/in.h, there is a switch to use builtin __swab functions.
What I'm doing now is #define __OPTIMIZE__ unless it was defined before
and the #include <netinet/in.h>
What is the best way? And what is a good way to convert 64-bit values?
- Alex
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-01-03 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-03 5:00 headers for htonl etc.? Alex Rhomberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox