Mercurial > mplayer.hg
comparison stream/tcp.c @ 27464:be85aae103f2
Move duplicated '#define closesocket close' into network.h along with
network-related #include #ifdeffery.
author | diego |
---|---|
date | Fri, 29 Aug 2008 22:55:39 +0000 |
parents | 5a30f5bc23a0 |
children | c0b233cd30ca |
comparison
equal
deleted
inserted
replaced
27463:e16088a911c1 | 27464:be85aae103f2 |
---|---|
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 | 22 #include "network.h" |
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 | |
34 #include "stream.h" | 23 #include "stream.h" |
35 #include "tcp.h" | 24 #include "tcp.h" |
36 | 25 |
37 /* IPv6 options */ | 26 /* IPv6 options */ |
38 int network_prefer_ipv4 = 0; | 27 int network_prefer_ipv4 = 0; |