summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2010-09-26 10:00:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-26 10:00:25 -0700
commit2b3431e2762434dff96ff279069e3796ef2d4333 (patch)
treef5cd0c578d762ee01da113a08a68c84efdb6f03b
parentfc2dc55c510657073ef4235658167a878e82cefa (diff)
parent3b923003c7c5a13b4ff2e2091acd307e9d1304b2 (diff)
downloadnetcat-2b3431e2762434dff96ff279069e3796ef2d4333.tar.gz
am 3b923003: Avoid calling res_init() since it\'s a private API in bionicandroid-sdk-tools_r12android-sdk-adt_r12
Merge commit '3b923003c7c5a13b4ff2e2091acd307e9d1304b2' into gingerbread-plus-aosp * commit '3b923003c7c5a13b4ff2e2091acd307e9d1304b2': Avoid calling res_init() since it's a private API in bionic
-rw-r--r--netcat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netcat.c b/netcat.c
index 16a58a5..722416e 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 */