summaryrefslogtreecommitdiff
path: root/security/MyPasswordSafe/patches/patch-ad
blob: 9cc36cf5ade496fc56f4e6a655ac3b53cdb3ad35 (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
$NetBSD: patch-ad,v 1.2 2012/03/02 15:07:16 hans Exp $

--- src/myendian.h.orig	2006-01-19 23:32:41.000000000 +0000
+++ src/myendian.h
@@ -8,10 +8,19 @@
 #    define BYTE_ORDER LITTLE_ENDIAN
 #  endif
 #else
-#  ifdef __NetBSD__
+#  if defined(__DragonFly__) || defined(__NetBSD__)
 #    include <sys/endian.h>
 #  elif __APPLE__
 #    include <ppc/endian.h>
+#  elif __sun
+#    include <sys/byteorder.h>
+#    define LITTLE_ENDIAN 1234
+#    define BIG_ENDIAN 4321
+#    ifdef _BIG_ENDIAN
+#      define BYTE_ORDER BIG_ENDIAN
+#    else
+#      define BYTE_ORDER LITTLE_ENDIAN
+#    endif
 #  else
 #    include <endian.h>
 #  endif