summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-ac
blob: 42005e50e01315808bd4f9e6e7ccaa3d0ce71567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ac,v 1.16 2006/06/07 19:19:28 rillig Exp $

--- src/af/util/xp/ut_endian.h.orig	2005-10-08 12:53:33.000000000 +0200
+++ src/af/util/xp/ut_endian.h	2006-06-07 21:15:51.188428052 +0200
@@ -47,6 +47,13 @@
 	#else
 		#define UT_BIG_ENDIAN
 	#endif
+#elif defined(__DragonFly__)
+	#include <sys/endian.h>
+	#if _BYTE_ORDER == _LITTLE_ENDIAN		
+		#define UT_LITTLE_ENDIAN
+	#else
+		#define UT_BIG_ENDIAN
+	#endif
 #elif defined(__sgi)
 	#include <sys/endian.h>
 	#if BYTE_ORDER == LITTLE_ENDIAN
@@ -60,7 +67,7 @@
 	#else
 		#define UT_LITTLE_ENDIAN
 	#endif
-#elif defined(SunOS)	/* this is defined by src/config/platform/sunos.mk */
+#elif defined(SunOS) || defined(__sun)	/* this is defined by src/config/platform/sunos.mk */
         #include <sys/isa_defs.h>
         #if defined(_BIG_ENDIAN)
                 #define UT_BIG_ENDIAN