aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 2ae6e0ce2..5835e00cb 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -30,17 +30,18 @@
#include <stdlib.h>
#include <ctype.h>
-#if defined(WIN32)
-#include <io.h>
-#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
@@ -55,8 +56,6 @@
#include <sys/param.h>
#endif
-#endif /* WIN32 */
-
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"