diff options
Diffstat (limited to 'stream/tcp.c')
-rw-r--r-- | stream/tcp.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/stream/tcp.c b/stream/tcp.c index e75e89d609..7eb5fc11b8 100644 --- a/stream/tcp.c +++ b/stream/tcp.c @@ -19,7 +19,18 @@ #include "mp_msg.h" #include "help_mp.h" -#include "network.h" + +#ifndef HAVE_WINSOCK2_H +#include <netdb.h> +#include <netinet/in.h> +#include <sys/socket.h> +#include <arpa/inet.h> +#define closesocket close +#else +#include <winsock2.h> +#include <ws2tcpip.h> +#endif + #include "stream.h" #include "tcp.h" |