diff options
Diffstat (limited to 'stream/rtp.c')
-rw-r--r-- | stream/rtp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/stream/rtp.c b/stream/rtp.c index c2a3857651..f4b84fc3b4 100644 --- a/stream/rtp.c +++ b/stream/rtp.c @@ -12,9 +12,17 @@ #include <stdio.h> #include <sys/types.h> #include <ctype.h> -#include <errno.h> #include "config.h" -#include "network.h" +#ifndef HAVE_WINSOCK2_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 <errno.h> #include "stream.h" /* MPEG-2 TS RTP stack */ |