From: Wouter Wijngaards Date: Fri, 15 Feb 2013 14:00:03 +0000 (+0000) Subject: - fix defines in lookup3 for bigendian bsd alpha X-Git-Tag: release-1.4.20rc1~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bd5f59645d9fcda630ce8ca2f0c5c0dc98f4157;p=thirdparty%2Funbound.git - fix defines in lookup3 for bigendian bsd alpha git-svn-id: file:///svn/unbound/trunk@2845 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 9a3645523..38290b03c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +15 February 2013: Wouter + - fix defines in lookup3 for bigendian bsd alpha + 11 February 2013: Wouter - Fixup openssl_thread init code to only run if compiled with SSL. diff --git a/util/storage/lookup3.c b/util/storage/lookup3.c index eb3341362..845cc3886 100644 --- a/util/storage/lookup3.c +++ b/util/storage/lookup3.c @@ -81,6 +81,9 @@ hash_set_raninit(uint32_t v) defined(__i586__) || defined(__i686__) || defined(vax) || defined(MIPSEL)) # define HASH_LITTLE_ENDIAN 1 # define HASH_BIG_ENDIAN 0 +#elif (!defined(_BYTE_ORDER) && !defined(__BYTE_ORDER) && defined(_BIG_ENDIAN)) +# define HASH_LITTLE_ENDIAN 0 +# define HASH_BIG_ENDIAN 1 #elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \ __BYTE_ORDER == __BIG_ENDIAN) || \ (defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && \