summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2010-09-23 15:12:31 +0800
committerJim Huang <jserv@0xlab.org>2010-09-23 15:14:05 +0800
commit3b923003c7c5a13b4ff2e2091acd307e9d1304b2 (patch)
tree6322393e293dfd2a6250828c23cc18f6c773579e
parentd7f236d811e18b8de3cabdf1a69a28ecedbb3a02 (diff)
downloadnetcat-3b923003c7c5a13b4ff2e2091acd307e9d1304b2.tar.gz
Avoid calling res_init() since it's a private API in bionictools_r9tools_r8froyo-plus-aosp
In 4.3BSD, res_init() function reads the config files (resolv.conf) to get the default domain name, search order and name server address(es). However, in bionic, resolv.conf is already ignored, so it is a no-op for actual functionality. Change-Id: Ib11fee052ff0b2bae8f5a4f036b7cdc1d1b059a2
-rw-r--r--netcat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netcat.c b/netcat.c
index c1d3f08..87dc269 100644
--- a/netcat.c
+++ b/netcat.c
@@ -33,7 +33,9 @@
#if 0
#undef _POSIX_SOURCE /* might need this for something? */
#endif
+#if !defined(ANDROID)
#define HAVE_BIND /* ASSUMPTION -- seems to work everywhere! */
+#endif
#define HAVE_HELP /* undefine if you dont want the help text */
#if 0
#define ANAL /* if you want case-sensitive DNS matching */