svn commit: r211446 - projects/ofed/head/sys/ofed/include
Jeff Roberson
jeff at FreeBSD.org
Wed Aug 18 07:39:19 UTC 2010
Author: jeff
Date: Wed Aug 18 07:39:18 2010
New Revision: 211446
URL: http://svn.freebsd.org/changeset/base/211446
Log:
- Linux uses __BYTE_ORDER and __*_ENDIAN. Define these from the
single-underscore bsd versions.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/byteswap.h
projects/ofed/head/sys/ofed/include/endian.h
Modified: projects/ofed/head/sys/ofed/include/byteswap.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/byteswap.h Wed Aug 18 07:38:13 2010 (r211445)
+++ projects/ofed/head/sys/ofed/include/byteswap.h Wed Aug 18 07:39:18 2010 (r211446)
@@ -34,6 +34,9 @@
*/
#include <sys/types.h>
#include <sys/endian.h>
-#define bswap_64 bswap64
+
+#define bswap_16 bswap16
+#define bswap_32 bswap32
+#define bswap_64 bswap64
#endif /* _OFED_INCLUDE_BYTESWAP_H_ */
Modified: projects/ofed/head/sys/ofed/include/endian.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/endian.h Wed Aug 18 07:38:13 2010 (r211445)
+++ projects/ofed/head/sys/ofed/include/endian.h Wed Aug 18 07:39:18 2010 (r211446)
@@ -29,5 +29,14 @@
* This file is included for compatibility with the userland libraries
* accompanying the infiniband stack.
*/
+
+#ifndef _OFED_INCLUDE_ENDIAN_H_
+#define _OFED_INCLUDE_ENDIAN_H_
+
#include <sys/types.h>
#include <sys/endian.h>
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#define __BIG_ENDIAN _BIG_ENDIAN
+#define __BYTE_ORDER _BYTE_ORDER
+
+#endif /* _OFED_INCLUDE_ENDIAN_H_ */
More information about the svn-src-projects
mailing list