From: Guenter Knauf Date: Sat, 14 Apr 2012 11:30:29 +0000 (+0200) Subject: Fix for Android to disable useless arpa/nameser.h. X-Git-Tag: upstream/1.10.0~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d6ef42b5fd717f646b17623d35640871621e448;p=platform%2Fupstream%2Fc-ares.git Fix for Android to disable useless arpa/nameser.h. --- diff --git a/ares_setup.h b/ares_setup.h index 1ef054d..9cd7d2c 100644 --- a/ares_setup.h +++ b/ares_setup.h @@ -175,6 +175,14 @@ # define ESRCH 3 #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