comparison stream/tcp.c @ 27472:c0b233cd30ca

Revert moving closesocket definition and network headers to network.h. This caused lots of trouble on MinGW, we need a different solution.
author diego
date Sun, 31 Aug 2008 13:59:54 +0000
parents be85aae103f2
children ae5da477539e
comparison
equal deleted inserted replaced
27471:d9c662edc347 27472:c0b233cd30ca
17 17
18 #include "config.h" 18 #include "config.h"
19 19
20 #include "mp_msg.h" 20 #include "mp_msg.h"
21 #include "help_mp.h" 21 #include "help_mp.h"
22 #include "network.h" 22
23 #ifndef HAVE_WINSOCK2_H
24 #include <netdb.h>
25 #include <netinet/in.h>
26 #include <sys/socket.h>
27 #include <arpa/inet.h>
28 #define closesocket close
29 #else
30 #include <winsock2.h>
31 #include <ws2tcpip.h>
32 #endif
33
23 #include "stream.h" 34 #include "stream.h"
24 #include "tcp.h" 35 #include "tcp.h"
25 36
26 /* IPv6 options */ 37 /* IPv6 options */
27 int network_prefer_ipv4 = 0; 38 int network_prefer_ipv4 = 0;