]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
remove dependency on arpa/telnet.h
authorDamien Miller <djm@google.com>
Thu, 16 Apr 2015 01:40:20 +0000 (11:40 +1000)
committerDamien Miller <djm@google.com>
Thu, 16 Apr 2015 01:40:35 +0000 (11:40 +1000)
regress/netcat.c

index 1a9fc87300123a273f86b31920f900c7b27a7654..6234ba019d37d8256a1e86dd3b1a3cd99bb17f45 100644 (file)
@@ -42,7 +42,6 @@
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <netinet/ip.h>
-#include <arpa/telnet.h>
 
 #include <errno.h>
 #include <netdb.h>
 # endif
 #endif
 
+/* Telnet options from arpa/telnet.h */
+#define IAC    255
+#define DONT   254
+#define DO     253
+#define WONT   252
+#define WILL   251
+
 #ifndef SUN_LEN
 #define SUN_LEN(su) \
        (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))