summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ares_init.c b/ares_init.c
index 07e1682..5af9609 100644
--- a/ares_init.c
+++ b/ares_init.c
@@ -97,6 +97,7 @@ static int sortlist_alloc(struct apattern **sortlist, int *nsort,
struct apattern *pat);
static int ip_addr(const char *s, ssize_t len, struct in_addr *addr);
static void natural_mask(struct apattern *pat);
+#if !defined(ANDROID) && !defined(__ANDROID__)
static int config_domain(ares_channel channel, char *str);
static int config_lookup(ares_channel channel, const char *str,
const char *bindch, const char *filech);
@@ -104,6 +105,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort,
const char *str);
static char *try_config(char *s, const char *opt, char scc);
#endif
+#endif
#define ARES_CONFIG_CHECK(x) (x->lookups && x->nsort > -1 && \
x->nservers > -1 && \
@@ -797,7 +799,7 @@ quit:
static int init_by_resolv_conf(ares_channel channel)
{
-#if !(defined(ANDROID) || defined(__ANDROID__) || defined(WATT32))
+#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(WATT32)
char *line = NULL;
#endif
int status = -1, nservers = 0, nsort = 0;