]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
OSX doesn't know which side of the egg it should crack. 1589/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 21 Jul 2014 13:03:58 +0000 (15:03 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 21 Jul 2014 13:09:17 +0000 (15:09 +0200)
My guess is that this is because can provide universal binaries.
We'll need to look into that later, but for now, at least choose
one of them and not both ;)

pdns/dns.hh

index 0b60ee0763a77c9c10d67e7de96b214781014b25..cbed5202502888e4c4b402dc4cb302cff67267f0 100644 (file)
@@ -257,8 +257,7 @@ struct dnsheader {
         unsigned        ad: 1;          /* authentic data from named */
         unsigned        cd: 1;          /* checking disabled by resolver */
         unsigned        rcode :4;       /* response code */
-#endif
-#if BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN
+#elif BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN
                         /* fields in third byte */
         unsigned        rd :1;          /* recursion desired */
         unsigned        tc :1;          /* truncated message */