diff options
Diffstat (limited to 'stream/librtsp')
-rw-r--r-- | stream/librtsp/rtsp_session.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/stream/librtsp/rtsp_session.c b/stream/librtsp/rtsp_session.c index 022aebf183..5e897ba777 100644 --- a/stream/librtsp/rtsp_session.c +++ b/stream/librtsp/rtsp_session.c @@ -29,6 +29,17 @@ */ #include <sys/types.h> +#include "config.h" +#ifndef HAVE_WINSOCK2_H +#define closesocket close +#include <sys/socket.h> +#include <netinet/in.h> +#include <netdb.h> +#else +#include <winsock2.h> +#endif + + #include <unistd.h> #include <stdio.h> #include <fcntl.h> @@ -36,12 +47,10 @@ #include <string.h> #include <inttypes.h> -#include "config.h" #include "mp_msg.h" #include "rtsp.h" #include "rtsp_rtp.h" #include "rtsp_session.h" -#include "stream/network.h" #include "stream/url.h" #include "stream/rtp.h" #include "stream/realrtsp/real.h" |