summaryrefslogtreecommitdiff
path: root/regress/netcat.c
diff options
context:
space:
mode:
authorDamien Miller <djm@google.com>2015-04-16 11:40:20 +1000
committerDamien Miller <djm@google.com>2015-04-16 11:40:35 +1000
commit673a1c16ad078d41558247ce739fe812c960acc8 (patch)
tree683c407d2775ddf3a49788b3e51cc5a454f84577 /regress/netcat.c
parent202d443eeda1829d336595a3cfc07827e49f45ed (diff)
remove dependency on arpa/telnet.h
Diffstat (limited to 'regress/netcat.c')
-rw-r--r--regress/netcat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/netcat.c b/regress/netcat.c
index 1a9fc8730..6234ba019 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -42,7 +42,6 @@
42#include <netinet/in.h> 42#include <netinet/in.h>
43#include <netinet/tcp.h> 43#include <netinet/tcp.h>
44#include <netinet/ip.h> 44#include <netinet/ip.h>
45#include <arpa/telnet.h>
46 45
47#include <errno.h> 46#include <errno.h>
48#include <netdb.h> 47#include <netdb.h>
@@ -63,6 +62,13 @@
63# endif 62# endif
64#endif 63#endif
65 64
65/* Telnet options from arpa/telnet.h */
66#define IAC 255
67#define DONT 254
68#define DO 253
69#define WONT 252
70#define WILL 251
71
66#ifndef SUN_LEN 72#ifndef SUN_LEN
67#define SUN_LEN(su) \ 73#define SUN_LEN(su) \
68 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 74 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))