summaryrefslogtreecommitdiff
path: root/chat/iip/patches/patch-aa
blob: 34060fcf10b951578ffbb179c398c7fd2c653e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.2 2012/02/16 15:00:58 hans Exp $

--- src/misc/compat.h.orig	2005-12-13 16:46:43.000000000 +0000
+++ src/misc/compat.h
@@ -70,7 +70,16 @@
 #if defined(_WINDOZE_) || defined(_CYGWIN_)
 #define LITTLE__ENDIAN
 #else
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__)
+#if defined(__sun)
+#include <sys/byteorder.h>
+#ifdef _BIG_ENDIAN
+#define BIG__ENDIAN
+#else
+#define LITTLE__ENDIAN
+#endif
+#elif defined(__DragonFly__)
+#include <sys/endian.h>
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__)
 #include <machine/endian.h>
 #if BYTE_ORDER == LITTLE_ENDIAN
 #define LITTLE__ENDIAN