From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2bdff8648f37895,start X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: headers for htonl etc.? Date: 2000/01/03 Message-ID: <3870721D.C59B05AC@ife.ee.ethz.ch>#1/1 X-Deja-AN: 567695844 Content-Transfer-Encoding: 7bit X-Trace: 3 Jan 2000 10:55:41 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Which files do I need to include to get definitions of htonl etc.? I tried to #include . I get some (inlined) definitions, but they are incompatible with , which I sometimes need for other stuff (INADDR_ANY) If I #include , 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 What is the best way? And what is a good way to convert 64-bit values? - Alex