Permalink
Browse files

Check for __ANDROID__ in addition to ANDROID macro.

Posted to c-ares list by Wayne.
  • Loading branch information...
1 parent 0d6ef42 commit 995fa144d97a80f87b40a1e335eb72a938026d48 @gknauf gknauf committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ares_init.c
View
@@ -60,7 +60,7 @@
#include <ctype.h>
#include <time.h>
-#ifdef ANDROID
+#elif defined(ANDROID) || defined(__ANDROID__)
#include <sys/system_properties.h>
#endif
@@ -971,7 +971,7 @@ DhcpNameServer
}
status = ARES_EOF;
-#elif defined(ANDROID)
+#elif defined(ANDROID) || defined(__ANDROID__)
char value[PROP_VALUE_MAX]="";
__system_property_get("net.dns1", value);
status = config_nameserver(&servers, &nservers, value);

0 comments on commit 995fa14

Please sign in to comment.