[svn-commits] fjoe: freebsd/trunk r9425 - /freebsd/trunk/include/dahdi/compat/bsd.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 5 11:47:19 CDT 2010


Author: fjoe
Date: Tue Oct  5 11:47:16 2010
New Revision: 9425

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9425
Log:
Define __BIG_ENDIAN and __LITTLE_ENDIAN properly.
This may fix wctdm on sparc64.

Modified:
    freebsd/trunk/include/dahdi/compat/bsd.h

Modified: freebsd/trunk/include/dahdi/compat/bsd.h
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/include/dahdi/compat/bsd.h?view=diff&rev=9425&r1=9424&r2=9425
==============================================================================
--- freebsd/trunk/include/dahdi/compat/bsd.h (original)
+++ freebsd/trunk/include/dahdi/compat/bsd.h Tue Oct  5 11:47:16 2010
@@ -66,9 +66,11 @@
 #define __be32  u_int32_t
 
 #if _BYTE_ORDER == _LITTLE_ENDIAN
+#define __LITTLE_ENDIAN
 #define __LITTLE_ENDIAN_BITFIELD
 #define __constant_htons(x)	((uint16_t) (((uint16_t) (x)) << 8 | ((uint16_t) (x)) >> 8))
 #elif _BYTE_ORDER == _BIG_ENDIAN
+#define __BIG_ENDIAN
 #define __BIG_ENDIAN_BITFIELD
 #define __constant_htons(x)	(x)
 #endif




More information about the svn-commits mailing list