1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-21 13:40:20 +00:00

Check for __ANDROID__ in addition to ANDROID macro.

This commit is contained in:
Guenter Knauf
2012-04-16 10:34:05 +02:00
parent 995fa144d9
commit 7d3f341156
2 changed files with 2 additions and 2 deletions

2
ares.h
View File

@ -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__))

View File

@ -179,7 +179,7 @@
* 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