Permalink
Browse files

Fix for Android to disable useless arpa/nameser.h.

  • Loading branch information...
1 parent 4ef145c commit 0d6ef42b5fd717f646b17623d35640871621e448 @gknauf gknauf committed Apr 14, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 ares_setup.h
View
@@ -176,6 +176,14 @@
#endif
/*
+ * Android does have the arpa/nameser.h header which is detected by configure
+ * but it appears to be empty with recent NDK r7b / r7c, so we undefine here.
+ */
+#if defined(__ANDROID__) && defined(HAVE_ARPA_NAMESER_H)
+# undef HAVE_ARPA_NAMESER_H
+#endif
+
+/*
* Recent autoconf versions define these symbols in ares_config.h. We don't
* want them (since they collide with the libcurl ones when we build
* --enable-debug) so we undef them again here.

0 comments on commit 0d6ef42

Please sign in to comment.