Skip to content

Commit

Permalink
Check for __ANDROID__ in addition to ANDROID macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Apr 16, 2012
1 parent 995fa14 commit 7d3f341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ares.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
require it! */ require it! */
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \ defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
defined(__ANDROID__) defined(ANDROID) || defined(__ANDROID__)
#include <sys/select.h> #include <sys/select.h>
#endif #endif
#if (defined(NETWARE) && !defined(__NOVELL_LIBC__)) #if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
Expand Down
2 changes: 1 addition & 1 deletion ares_setup.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
* Android does have the arpa/nameser.h header which is detected by configure * 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. * but it appears to be empty with recent NDK r7b / r7c, so we undefine here.
*/ */
#if defined(__ANDROID__) && defined(HAVE_ARPA_NAMESER_H) #if (defined(ANDROID) || defined(__ANDROID__)) && defined(HAVE_ARPA_NAMESER_H)
# undef HAVE_ARPA_NAMESER_H # undef HAVE_ARPA_NAMESER_H
#endif #endif


Expand Down

0 comments on commit 7d3f341

Please sign in to comment.