diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-04-13 09:40:36 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-04-13 09:40:36 +0000 |
commit | c16034f6ebaa9bf9e9e5784600c0da8534a7ee29 (patch) | |
tree | b84d5f539aa991ea9494dd6b734d947307d98e1c /misc/rhash | |
parent | 9f3a936adde660c6e718aec6d88ab78eace39515 (diff) | |
download | pkgsrc-c16034f6ebaa9bf9e9e5784600c0da8534a7ee29.tar.gz |
Don't assume _BIG_ENDIAN and _LITTLE_ENDIAN have values. Fixes SunOS.
Diffstat (limited to 'misc/rhash')
-rw-r--r-- | misc/rhash/distinfo | 4 | ||||
-rw-r--r-- | misc/rhash/patches/patch-librhash_byte__order.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/misc/rhash/distinfo b/misc/rhash/distinfo index e87c3dcf68b..a3615d66b23 100644 --- a/misc/rhash/distinfo +++ b/misc/rhash/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2016/11/14 14:10:04 wiz Exp $ +$NetBSD: distinfo,v 1.6 2017/04/13 09:40:36 jperkin Exp $ SHA1 (rhash-1.3.4.tar.gz) = fc4610084b8b5a8d20ef0b788381709921ada8bb RMD160 (rhash-1.3.4.tar.gz) = 00225455818941f6e59b398854f128687465448b SHA512 (rhash-1.3.4.tar.gz) = 1d6af41f98588005ad2dcabdf479a30f7e4e6b59d56b322702827470e6eaa9a6905e9c1424f778b90488f04e719aa3b2985b92820b7da40ae30f2968339990c0 Size (rhash-1.3.4.tar.gz) = 309181 bytes -SHA1 (patch-librhash_byte__order.h) = c91d5e8306ad44c3e3492023c3131337f6a77b16 +SHA1 (patch-librhash_byte__order.h) = 04b5b1f75ec2e20e301f9cf1a055df1b260a8912 diff --git a/misc/rhash/patches/patch-librhash_byte__order.h b/misc/rhash/patches/patch-librhash_byte__order.h index cb847119eba..f059e6ef399 100644 --- a/misc/rhash/patches/patch-librhash_byte__order.h +++ b/misc/rhash/patches/patch-librhash_byte__order.h @@ -1,4 +1,4 @@ -$NetBSD: patch-librhash_byte__order.h,v 1.3 2016/11/14 14:10:04 wiz Exp $ +$NetBSD: patch-librhash_byte__order.h,v 1.4 2017/04/13 09:40:37 jperkin Exp $ Use bswap builtins for clang. Prefer builtin over inline assembler. Recognize BSDish endian macros. @@ -20,7 +20,7 @@ Recognize BSDish endian macros. #if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \ - __BYTE_ORDER == __LITTLE_ENDIAN) || \ + __BYTE_ORDER == __LITTLE_ENDIAN) || (defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && \ -+ _BYTE_ORDER == _LITTLE_ENDIAN) || \ ++ _BYTE_ORDER == _LITTLE_ENDIAN + 0) || \ defined(CPU_IA32) || defined(CPU_X64) || \ defined(__ia64) || defined(__ia64__) || defined(__alpha__) || defined(_M_ALPHA) || \ defined(vax) || defined(MIPSEL) || defined(_ARM_) || defined(__arm__) @@ -30,7 +30,7 @@ Recognize BSDish endian macros. #elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \ - __BYTE_ORDER == __BIG_ENDIAN) || \ + __BYTE_ORDER == __BIG_ENDIAN) || (defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && \ -+ _BYTE_ORDER == _BIG_ENDIAN) || \ ++ _BYTE_ORDER == _BIG_ENDIAN + 0) || \ defined(__sparc) || defined(__sparc__) || defined(sparc) || \ defined(_ARCH_PPC) || defined(_ARCH_PPC64) || defined(_POWER) || \ defined(__POWERPC__) || defined(POWERPC) || defined(__powerpc) || \ |