]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fix building on osx 18/head
authorMarkus Chou <chou.marcus@gmail.com>
Sat, 6 Jul 2013 17:01:10 +0000 (01:01 +0800)
committerMarkus Chou <chou.marcus@gmail.com>
Sat, 6 Jul 2013 17:01:10 +0000 (01:01 +0800)
    On Linux, they use 'BIND_4_COMPAT' and #include <arpa/nameser_compat.h> in <arpa/nameser.h>
    On OSX, if 'BIND_8_COMPAT' is #defined, <arpa/nameser_compat.h> is #included in <arpa/nameser.h>

asn.c

diff --git a/asn.c b/asn.c
index f384f19753a4000da00e89ad2588d9020b8f82eb..eac8d5e7c7bd890687fd91fc3437b881c341631e 100644 (file)
--- a/asn.c
+++ b/asn.c
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 
-#ifndef __APPLE__
+#ifdef __APPLE__
 #define BIND_8_COMPAT
 #endif
 #include <arpa/nameser.h>