patches/abiword-04-endian.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2331 bb50963a5336
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- abiword-2.8.1/src/af/util/xp/ut_endian.h-orig	2010-02-03 09:11:09.705224811 -0600
+++ abiword-2.8.1/src/af/util/xp/ut_endian.h	2010-02-03 09:14:39.497935947 -0600
@@ -102,6 +102,12 @@
 	#if !defined(UT_LITTLE_ENDIAN) && !defined(UT_BIG_ENDIAN)
 		#define UT_LITTLE_ENDIAN
 	#endif		
+#elif defined (__sun)
+        #if defined (__LITTLE_ENDIAN)
+		#define UT_LITTLE_ENDIAN
+        #else
+		#define UT_BIG_ENDIAN
+        #endif
 #else /* this is for Linux */
 	#include <endian.h>
 	#if __BYTE_ORDER == __LITTLE_ENDIAN