projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6ef42
)
Check for __ANDROID__ in addition to ANDROID macro.
author
Guenter Knauf
<lists@gknw.net>
Mon, 16 Apr 2012 08:19:07 +0000
(10:19 +0200)
committer
Guenter Knauf
<lists@gknw.net>
Mon, 16 Apr 2012 08:19:07 +0000
(10:19 +0200)
Posted to c-ares list by Wayne.
ares_init.c
patch
|
blob
|
history
diff --git
a/ares_init.c
b/ares_init.c
index ea2a9780fd5d75a6465bdfa7a5d1d1488b31e2e3..0167f569b226e8dd4343bc22a750e101b4fd6156 100644
(file)
--- a/
ares_init.c
+++ b/
ares_init.c
@@
-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);