diff options
Diffstat (limited to 'stream/udp.c')
-rw-r--r-- | stream/udp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/stream/udp.c b/stream/udp.c index eaa0128b0c..52d47a0991 100644 --- a/stream/udp.c +++ b/stream/udp.c @@ -31,8 +31,18 @@ #include <sys/time.h> #include <ctype.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 "mp_msg.h" -#include "network.h" #include "url.h" #include "udp.h" |