]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
the recursor finally works on Apple! Many thanks to long time PowerDNS contributor...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 8 Jun 2008 08:41:01 +0000 (08:41 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 8 Jun 2008 08:41:01 +0000 (08:41 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1185 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dns.hh
pdns/sysdeps-recursor/Darwin.inc [new file with mode: 0644]

index 6b0df698fa697deac37879bc73ada7486b97b2d1..7b8f192420fed4c62d4798b304c7eb89ffbd1857 100644 (file)
@@ -169,7 +169,7 @@ enum  {
 #ifdef WIN32
 #define BYTE_ORDER 1
 #define LITTLE_ENDIAN 1
-#elif __FreeBSD__
+#elif __FreeBSD__ || __APPLE__
 #include <machine/endian.h>
 #elif __linux__
 # include <endian.h>
diff --git a/pdns/sysdeps-recursor/Darwin.inc b/pdns/sysdeps-recursor/Darwin.inc
new file mode 100644 (file)
index 0000000..90453af
--- /dev/null
@@ -0,0 +1 @@
+CXXFLAGS+=-D_XOPEN_SOURCE