summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-10-24 15:44:27 -0700
committerNick Kralevich <nnk@google.com>2011-10-24 16:45:58 -0700
commite4e83f8147f92141cd02cc46cccca088c527ea2a (patch)
treec6447c33a54750c3c51d062d023e0c84ee788e9b /Android.mk
parent3b92542cff3f53ab608c25e1f65c538e42dece1b (diff)
downloadnetcat-jb-mr0-release.tar.gz
Upgrade to openbsd's version of netcat, available for download from http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/ This version has been modified to remove BSD specific calls and other functionality unnecessary for Android. The removed portions of code are surrounded by #ifdef ANDROID / #endif. This code corresponds to the following openbsd versions: atomicio.c: v1.10 atomicio.h: v1.2 netcat.c: v1.103 The file socks.c and nc.1 are not included in this change. Change-Id: I39df7fbe335af97e092dd4d4a96f957d6d1a5b5d
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index fba04d6..027cb98 100644
--- a/Android.mk
+++ b/Android.mk
@@ -2,7 +2,9 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=\
- netcat.c
+ netcat.c \
+ atomicio.c
+
LOCAL_CFLAGS:=-O2 -g
#LOCAL_CFLAGS+=-DLINUX