]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
ui/asn.c: No need to define BIND_8_COMPAT
authorSevan Janiyan <venture37@geeklan.co.uk>
Sat, 12 Jul 2025 18:06:39 +0000 (19:06 +0100)
committerSevan Janiyan <venture37@geeklan.co.uk>
Sat, 12 Jul 2025 18:06:39 +0000 (19:06 +0100)
Before OS X 10.6, defining BIND_8_COMPAT included arpa/nameser8_compat.h
which was removed in 10.6 and from then on included arpa/nameser_compat.h
until BIND_8_COMPAT was removed somewhere between macOS 10.13 & 10.15.

On systems before 10.6 this causes the build to break due to conflicts.

ui/asn.c

index 111c3942dc55d907720e523deda518e355f8b924..28f5cd30149fb7ae5984156fef14dfdb3360ae43 100644 (file)
--- a/ui/asn.c
+++ b/ui/asn.c
@@ -30,9 +30,6 @@
 #endif
 #include <errno.h>
 
-#ifdef __APPLE__
-#define BIND_8_COMPAT
-#endif
 #include <arpa/nameser.h>
 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
 #include <arpa/nameser_compat.h>