Mercurial > mplayer.hg
comparison stream/tcp.c @ 27473:ae5da477539e
Move '#define closesocket close' preprocessor directive to a common place
and put it under the proper '#ifndef HAVE_CLOSESOCKET' condition.
author | diego |
---|---|
date | Mon, 01 Sep 2008 07:31:57 +0000 |
parents | c0b233cd30ca |
children | f1be9f91cbd8 |
comparison
equal
deleted
inserted
replaced
27472:c0b233cd30ca | 27473:ae5da477539e |
---|---|
23 #ifndef HAVE_WINSOCK2_H | 23 #ifndef HAVE_WINSOCK2_H |
24 #include <netdb.h> | 24 #include <netdb.h> |
25 #include <netinet/in.h> | 25 #include <netinet/in.h> |
26 #include <sys/socket.h> | 26 #include <sys/socket.h> |
27 #include <arpa/inet.h> | 27 #include <arpa/inet.h> |
28 #define closesocket close | |
29 #else | 28 #else |
30 #include <winsock2.h> | 29 #include <winsock2.h> |
31 #include <ws2tcpip.h> | 30 #include <ws2tcpip.h> |
32 #endif | 31 #endif |
33 | 32 |
33 #include "network.h" | |
34 #include "stream.h" | 34 #include "stream.h" |
35 #include "tcp.h" | 35 #include "tcp.h" |
36 | 36 |
37 /* IPv6 options */ | 37 /* IPv6 options */ |
38 int network_prefer_ipv4 = 0; | 38 int network_prefer_ipv4 = 0; |