Build all of netcat now bionic has <pty.h>.

Change-Id: I3beee0bd2bffab383bf7ec44d61698961ade7e2b
diff --git a/.config b/.config
index 95a24b5..a5211a8 100644
--- a/.config
+++ b/.config
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # ToyBox version: KCONFIG_VERSION
-# Tue Dec  2 19:06:43 2014
+# Wed Dec  3 08:12:05 2014
 #
 CONFIG_TOYBOX_CONTAINER=y
 CONFIG_TOYBOX_FIFREEZE=y
@@ -206,7 +206,7 @@
 CONFIG_MOUNTPOINT=y
 CONFIG_NBD_CLIENT=y
 CONFIG_NETCAT=y
-# CONFIG_NETCAT_LISTEN is not set
+CONFIG_NETCAT_LISTEN=y
 CONFIG_ONEIT=y
 CONFIG_PARTPROBE=y
 CONFIG_PIVOT_ROOT=y
diff --git a/generated/config.h b/generated/config.h
index e10781d..53eff77 100644
--- a/generated/config.h
+++ b/generated/config.h
@@ -380,8 +380,8 @@
 #define USE_NBD_CLIENT(...) __VA_ARGS__
 #define CFG_NETCAT 1
 #define USE_NETCAT(...) __VA_ARGS__
-#define CFG_NETCAT_LISTEN 0
-#define USE_NETCAT_LISTEN(...)
+#define CFG_NETCAT_LISTEN 1
+#define USE_NETCAT_LISTEN(...) __VA_ARGS__
 #define CFG_ONEIT 1
 #define USE_ONEIT(...) __VA_ARGS__
 #define CFG_PARTPROBE 1
diff --git a/generated/flags.h b/generated/flags.h
index cbfef62..f1b3740 100644
--- a/generated/flags.h
+++ b/generated/flags.h
@@ -1144,7 +1144,7 @@
 #undef FLAG_n
 #endif
 
-// netcat w#p#s:q#f: tl^L^w#p#s:q#f:
+// netcat tl^L^w#p#s:q#f: tl^L^w#p#s:q#f:
 #ifdef CLEANUP_netcat
 #undef CLEANUP_netcat
 #undef FOR_netcat
@@ -3246,9 +3246,9 @@
 #define FLAG_s (1<<2)
 #define FLAG_p (1<<3)
 #define FLAG_w (1<<4)
-#define FLAG_L 0
-#define FLAG_l 0
-#define FLAG_t 0
+#define FLAG_L (1<<5)
+#define FLAG_l (1<<6)
+#define FLAG_t (1<<7)
 #endif
 
 #ifdef FOR_netstat
diff --git a/generated/help.h b/generated/help.h
index 706f7dc..5075570 100644
--- a/generated/help.h
+++ b/generated/help.h
@@ -116,9 +116,7 @@
 
 #define help_oneit "usage: oneit [-p] [-c /dev/tty0] command [...]\n\nA simple init program that runs a single supplied command line with a\ncontrolling tty (so CTRL-C can kill it).\n\n-p	Power off instead of rebooting when command exits.\n-c	Which console device to use.\n\nThe oneit command runs the supplied command line as a child process\n(because PID 1 has signals blocked), attached to /dev/tty0, in its\nown session. Then oneit reaps zombies until the child exits, at\nwhich point it reboots (or with -p, powers off) the system.\n\n"
 
-#define help_netcat_listen "usage: netcat [-t] [-lL COMMAND...]\n\n-t	allocate tty (must come before -l or -L)\n-l	listen for one incoming connection.\n-L	listen for multiple incoming connections (server mode).\n\nThe command line after -l or -L is executed to handle each incoming\nconnection. If none, the connection is forwarded to stdin/stdout.\n\nFor a quick-and-dirty server, try something like:\nnetcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l\n\n"
-
-#define help_netcat "usage: netcat [-u] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}\n\n-f	use FILENAME (ala /dev/ttyS0) instead of network\n-p	local port number\n-q	SECONDS quit this many seconds after EOF on stdin.\n-s	local ipv4 address\n-w	SECONDS timeout for connection\n\nUse \"stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho\" with\nnetcat -f to connect to a serial port.\n\n"
+#define help_netcat "usage: netcat [-tu] [-lL COMMAND...] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}\n\n-L	listen for multiple incoming connections (server mode).\n-f	use FILENAME (ala /dev/ttyS0) instead of network\n-l	listen for one incoming connection.\n-p	local port number\n-q	SECONDS quit this many seconds after EOF on stdin.\n-s	local ipv4 address\n-t	allocate tty (must come before -l or -L)\n-w	SECONDS timeout for connection\n\nUse \"stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho\" with\nnetcat -f to connect to a serial port.\n\nThe command line after -l or -L is executed to handle each incoming\nconnection. If none, the connection is forwarded to stdin/stdout.\n\nFor a quick-and-dirty server, try something like:\nnetcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l\n"
 
 #define help_nbd_client "usage: nbd-client [-ns] HOST PORT DEVICE\n\n-n	Do not fork into background\n-s	nbd swap support (lock server into memory)\n\n"
 
diff --git a/pty.h b/pty.h
deleted file mode 100644
index e69de29..0000000
--- a/pty.h
+++ /dev/null