Check for __ANDROID__ in addition to ANDROID macro.
authorGuenter Knauf <lists@gknw.net>
Mon, 16 Apr 2012 08:34:05 +0000 (10:34 +0200)
committerGuenter Knauf <lists@gknw.net>
Mon, 16 Apr 2012 08:34:05 +0000 (10:34 +0200)
ares.h
ares_setup.h

diff --git a/ares.h b/ares.h
index 9702edf..a4a119e 100644 (file)
--- a/ares.h
+++ b/ares.h
@@ -38,7 +38,7 @@
    require it! */
 #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
     defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
-    defined(__ANDROID__)
+    defined(ANDROID) || defined(__ANDROID__)
 #include <sys/select.h>
 #endif
 #if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
index 9cd7d2c..4df7961 100644 (file)
  * 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)
+#if (defined(ANDROID) || defined(__ANDROID__)) && defined(HAVE_ARPA_NAMESER_H)
 #  undef HAVE_ARPA_NAMESER_H
 #endif