Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2010 07:39:18 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r211446 - projects/ofed/head/sys/ofed/include
Message-ID:  <201008180739.o7I7dI3h058602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008180739.o7I7dI3h058602>