etc/linux: add common ntohll and htonll definitions
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:16:06 +0000 (19:16 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Apr 2009 19:16:06 +0000 (19:16 +0000)
To support common linux/windows code that makes use of these calls.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2123 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

inc/user/linux/netinet/in.h

index 4c84a6b..ebdff29 100644 (file)
@@ -34,4 +34,9 @@
 #ifndef _IN_H_
 #define _IN_H_
 
+#include <stdlib.h>
+
+#define ntohll _byteswap_uint64
+#define htonll ntohll
+
 #endif /* _IN_H_ */