1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

WIN32 io.h and fcntl.h inclusion done in setup_once.h

This commit is contained in:
Yang Tse 2011-07-25 05:30:14 +02:00
parent 0337b87197
commit 983f3d70f9
10 changed files with 18 additions and 52 deletions

View File

@ -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"

View File

@ -29,11 +29,6 @@
#include <stdlib.h>
#include <ctype.h>
#include "strequal.h"
#ifdef WIN32
#include <io.h>
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -60,8 +55,7 @@
#include <sys/param.h>
#endif
#endif /* WIN32 ... */
#include "strequal.h"
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"

View File

@ -30,10 +30,6 @@
#include <stdlib.h>
#include <ctype.h>
#ifdef WIN32
#include <io.h>
#include <fcntl.h>
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -64,8 +60,6 @@
#include <fcntl.h>
#endif
#endif /* WIN32 */
#include "strtoofft.h"
#include "urldata.h"
#include <curl/curl.h>

View File

@ -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"

View File

@ -30,9 +30,6 @@
#include <stdlib.h>
#include <ctype.h>
#ifdef WIN32
#include <io.h>
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -60,8 +57,6 @@
#include <sys/param.h>
#endif
#endif
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"

View File

@ -25,6 +25,7 @@
#include "setup.h"
#ifdef USE_LIBSSH2
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@ -45,7 +46,6 @@
#include <fcntl.h>
#endif
#ifndef WIN32
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -65,7 +65,6 @@
#include <in.h>
#include <inet.h>
#endif
#endif /* !WIN32 */
#if (defined(NETWARE) && defined(__NOVELL_LIBC__))
#undef in_addr_t

View File

@ -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"

View File

@ -29,17 +29,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
@ -54,8 +55,6 @@
#include <sys/param.h>
#endif
#endif /* WIN32 */
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"

View File

@ -33,9 +33,6 @@
#include "strequal.h"
#include "rawstr.h"
#ifdef WIN32
#include <io.h>
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -73,8 +70,6 @@
#error "We can't compile without socket() support!"
#endif
#endif /* WIN32 */
#include "urldata.h"
#include <curl/curl.h>
#include "netrc.h"

View File

@ -30,9 +30,6 @@
#include <stdlib.h>
#include <ctype.h>
#ifdef WIN32
#include <io.h>
#else
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@ -68,8 +65,6 @@
#error "We can't compile without socket() support!"
#endif
#endif /* WIN32 */
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif