From: Kees Monshouwer Date: Fri, 16 May 2014 19:23:47 +0000 (+0200) Subject: WORDS_BIGENDIAN not defined on sparc Solaris 10 X-Git-Tag: auth-3.4.0-rc1~103^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1514%2Fhead;p=thirdparty%2Fpdns.git WORDS_BIGENDIAN not defined on sparc Solaris 10 --- diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index 2bc18b6433..00fd5899e9 100644 --- a/pdns/dnsproxy.cc +++ b/pdns/dnsproxy.cc @@ -168,7 +168,7 @@ void DNSProxy::mainloop(void) memcpy(&d,buffer,sizeof(d)); { Lock l(&d_lock); -#ifdef WORDS_BIGENDIAN +#if BYTE_ORDER == BIG_ENDIAN // this is needed because spoof ID down below does not respect the native byteorder d.id = ( 256 * (uint16_t)buffer[1] ) + (uint16_t)buffer[0]; #endif