From bf54956476b3a9f7800244a45ff6528def6f401a Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 16 May 2014 21:23:47 +0200 Subject: [PATCH] WORDS_BIGENDIAN not defined on sparc Solaris 10 --- pdns/dnsproxy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2