patches/abiword-04-endian.diff
author yippi
Wed, 03 Feb 2010 16:43:17 +0000
changeset 2331 bb50963a5336
permissions -rw-r--r--
2010-02-03 Brian Cameron <[email protected]> * SFEsugar-base.spec: Minor fix to packaging. * SFEsugar-readetexts.spec, SFEsugar-xoeditor.spec, SFEsugar-typingturtle.spec, SFEsugar-turtleart.spec, SFEsugar-read.spec, SFEsugar-bounce.spec, SFEsugar-getiabooks.spec, SFEsugar-pippy.spec, SFEsugar-chat.spec, SFEsugar-cardsort.spec, SFEsugar-colors.spec, SFEsugar-clock.spec, SFEsugar-paint.spec, SFEsugar-cartoonbuilder.spec, SFEsugar-record.spec, SFEsugar-erikos.spec, SFEsugar-ruler.spec, SFEsugar-measure.spec, SFEsugar-moon.spec, SFEsugar-visualmatch.spec, SFEsugar-sliderule.spec, SFEsugar-imageviewer.spec, SFEsugar-labyrinth.spec, SFEsugar-physics.spec, SFEsugar-calculate.spec, SFEsugar-jukebox.spec, SFEsugar-terminal.spec, SFEsugar-flipsticks.spec, SFEsugar-finance.spec, SFEsugar-write.spec, SFEsugar-log.spec, SFEsugar-memorize.spec: Add spec-files for sugar applications. * SFEpython26-olpcgames.spec: Added. * SFEpygame.spec, patches/pygame-01-scrap.diff, patches/pygame-02-noconfirm.diff: Update to 1.9.1 and rework patches. * patches/pygame-03-pgcompat.diff: Add new patch needed to build. * SFEabiword.spec, base-specs/abiword.spec: Bump to 2.8.1. * patches/abiword-01-const-cast.diff, patches/abiword-02-reinterpret-cast.spec, patches/abiword-03-namespace-std.diff, patches/abiword-06-define-func.diff: Remove patches that are upstream or no longer apply. Renumber the rest. * SFEpython26-abiword.spec, patches/pyabiword-01-makefile.diff: Add new spec file and patch needed to build. * SFEpython26-cjson.spec, SFEpython26-decorator.spec, SFEpython26-telepathy.spec: Fix Requires lines.

--- 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