pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rhash Don't assume _BIG_ENDIAN and _LITTLE_ENDIAN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f679c38b8200
branches:  trunk
changeset: 360997:f679c38b8200
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Apr 13 09:40:36 2017 +0000

description:
Don't assume _BIG_ENDIAN and _LITTLE_ENDIAN have values.  Fixes SunOS.

diffstat:

 misc/rhash/distinfo                             |  4 ++--
 misc/rhash/patches/patch-librhash_byte__order.h |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r a4d119f97009 -r f679c38b8200 misc/rhash/distinfo
--- a/misc/rhash/distinfo       Thu Apr 13 06:45:16 2017 +0000
+++ b/misc/rhash/distinfo       Thu Apr 13 09:40:36 2017 +0000
@@ -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 -r a4d119f97009 -r f679c38b8200 misc/rhash/patches/patch-librhash_byte__order.h
--- a/misc/rhash/patches/patch-librhash_byte__order.h   Thu Apr 13 06:45:16 2017 +0000
+++ b/misc/rhash/patches/patch-librhash_byte__order.h   Thu Apr 13 09:40:36 2017 +0000
@@ -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 @@
  #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 @@
  #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) || \



Home | Main Index | Thread Index | Old Index