]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
WORDS_BIGENDIAN not defined on sparc Solaris 10 1514/head
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 16 May 2014 19:23:47 +0000 (21:23 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 6 Jul 2014 12:12:05 +0000 (14:12 +0200)
pdns/dnsproxy.cc

index 2bc18b64332cb43389532fa1aa684bd8727e6a3f..00fd5899e9788188be83c449167282a307a3920d 100644 (file)
@@ -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