[ofw] [PATCH] etc/linux: add common ntohll and htonll definitions

Sean Hefty sean.hefty at intel.com
Fri Apr 17 11:13:01 PDT 2009


To support common linux/windows code that makes use of these calls.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
diff -up -r -X \mshefty\scm\winof\trunk\docs\dontdiff.txt -I '\$Id:' trunk\inc\user\linux/netinet/in.h
branches\winverbs\inc\user\linux/netinet/in.h
--- trunk\inc\user\linux/netinet/in.h	2009-02-14 11:34:31.527048700 -0800
+++ branches\winverbs\inc\user\linux/netinet/in.h	2009-03-23 13:07:20.721156000 -0700
@@ -34,4 +34,9 @@
 #ifndef _IN_H_
 #define _IN_H_
 
+#include <stdlib.h>
+
+#define ntohll _byteswap_uint64
+#define htonll ntohll
+
 #endif	/* _IN_H_ */




More information about the ofw mailing list