summaryrefslogtreecommitdiff
path: root/lib/gopher.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-07-25 05:30:14 +0200
committerYang Tse <yangsita@gmail.com>2011-07-25 05:30:14 +0200
commit983f3d70f9610a35f279b656a3322087e272f2a6 (patch)
tree55b7683e46c1c079e902f85208d0eb64b08e3903 /lib/gopher.c
parent0337b871975ab515c513d2c5d596feb9a489494d (diff)
downloadcurl-983f3d70f9610a35f279b656a3322087e272f2a6.tar.gz
WIN32 io.h and fcntl.h inclusion done in setup_once.h
Diffstat (limited to 'lib/gopher.c')
-rw-r--r--lib/gopher.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/gopher.c b/lib/gopher.c
index 8447d3fa4..dc9c134b5 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -31,17 +31,18 @@
#include <stdlib.h>
#include <ctype.h>
-#ifdef 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
@@ -60,9 +61,6 @@
#include <sys/select.h>
#endif
-
-#endif
-
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"