diff options
author | dholland <dholland@pkgsrc.org> | 2015-11-09 05:26:40 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2015-11-09 05:26:40 +0000 |
commit | 716690e24a3f7ea6c4ed20a62b8414b65c40a4f8 (patch) | |
tree | ec6449fa70b1330f0447b5d86292cb5f8862b5d3 /graphics | |
parent | f216aa7c9db19c82819a4636ae152cc0a3c6cfb7 (diff) | |
download | pkgsrc-716690e24a3f7ea6c4ed20a62b8414b65c40a4f8.tar.gz |
Fix endian detection. hi joerg
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/s10sh/distinfo | 4 | ||||
-rw-r--r-- | graphics/s10sh/patches/patch-ac | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/graphics/s10sh/distinfo b/graphics/s10sh/distinfo index 1ef4cf09151..62115b9400d 100644 --- a/graphics/s10sh/distinfo +++ b/graphics/s10sh/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2015/11/03 21:34:19 agc Exp $ +$NetBSD: distinfo,v 1.11 2015/11/09 05:26:40 dholland Exp $ SHA1 (s10sh-0.2.0.tar.gz) = a8ada7c84ff64be98a1195612d48e2042f293eba RMD160 (s10sh-0.2.0.tar.gz) = 2b0ef13958bde03b2e9056bc023e3dd0c84747b4 @@ -6,7 +6,7 @@ SHA512 (s10sh-0.2.0.tar.gz) = bd0c93b2e0c775d20b969344c8438ad86dcf3d21efd83b59e1 Size (s10sh-0.2.0.tar.gz) = 172203 bytes SHA1 (patch-aa) = 1708337ee44567e66e227903e0ae15101670ed31 SHA1 (patch-ab) = 83e20d2bbda9de83a3db5a5990f6cc7f1fb1a18c -SHA1 (patch-ac) = eb83c59a8d3c80048e23cc5b631f62dd8ca482ee +SHA1 (patch-ac) = c4163858852f2d2153f4740989b212102d8436cf SHA1 (patch-ad) = 6e4164e2040508253075d5f482a527de9ff33d61 SHA1 (patch-ae) = f22ee8feef8a8d99c91ecbdfc5dfd7e1751788b9 SHA1 (patch-common.c) = ba22cf896aa9826c925c56829485a77d5df453c3 diff --git a/graphics/s10sh/patches/patch-ac b/graphics/s10sh/patches/patch-ac index d1a5544d737..5c4470aae7c 100644 --- a/graphics/s10sh/patches/patch-ac +++ b/graphics/s10sh/patches/patch-ac @@ -1,8 +1,10 @@ -$NetBSD: patch-ac,v 1.3 2015/02/23 18:24:00 joerg Exp $ +$NetBSD: patch-ac,v 1.4 2015/11/09 05:26:40 dholland Exp $ + +Fix byte order detection. --- bytesex.h.orig 2001-03-13 13:46:18.000000000 +0000 +++ bytesex.h -@@ -3,18 +3,15 @@ +@@ -3,18 +3,18 @@ #ifndef S10SH_BYTESEX_H #define S10SH_BYTESEX_H @@ -12,13 +14,16 @@ $NetBSD: patch-ac,v 1.3 2015/02/23 18:24:00 joerg Exp $ +#include <sys/endian.h> + +#if defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && (_BYTE_ORDER == _LITTLE_ENDIAN) ++#define BYTE_ORDER_LITTLE_ENDIAN ++#elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && (_BYTE_ORDER == _BIG_ENDIAN) ++#define BYTE_ORDER_BIG_ENDIAN ++#elif defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && (__BYTE_ORDER == _LITTLE_ENDIAN) #define BYTE_ORDER_LITTLE_ENDIAN -#elif defined(__mc68000__) \ - || defined (__sparc__) \ - || defined (__sparc) \ - || defined (__PPC__) \ - || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__))) -+#elif defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && (__BYTE_ORDER == _LITTLE_ENDIAN) +#elif defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && (__BYTE_ORDER == _BIG_ENDIAN) #define BYTE_ORDER_BIG_ENDIAN #else |