Skip to content

Commit

Permalink
Fix for Android to disable useless arpa/nameser.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Apr 14, 2012
1 parent 4ef145c commit 0d6ef42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ares_setup.h
Expand Up @@ -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
Expand Down

0 comments on commit 0d6ef42

Please sign in to comment.