Fix for Android to disable useless arpa/nameser.h.
authorGuenter Knauf <lists@gknw.net>
Sat, 14 Apr 2012 11:30:29 +0000 (13:30 +0200)
committerGuenter Knauf <lists@gknw.net>
Sat, 14 Apr 2012 11:30:29 +0000 (13:30 +0200)
ares_setup.h

index 1ef054d..9cd7d2c 100644 (file)
 #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.