Mercurial > mplayer.hg
diff stream/librtsp/rtsp_session.c @ 27472:c0b233cd30ca
Revert moving closesocket definition and network headers to network.h.
This caused lots of trouble on MinGW, we need a different solution.
author | diego |
---|---|
date | Sun, 31 Aug 2008 13:59:54 +0000 |
parents | be85aae103f2 |
children | ae5da477539e |
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c Sun Aug 31 13:56:18 2008 +0000 +++ b/stream/librtsp/rtsp_session.c Sun Aug 31 13:59:54 2008 +0000 @@ -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"