From f27f04a53d56a5b6ca89e80a67c140b6f009c439 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 31 Aug 2008 13:59:54 +0000 Subject: Revert moving closesocket definition and network headers to network.h. This caused lots of trouble on MinGW, we need a different solution. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27504 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/librtsp/rtsp_session.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'stream/librtsp/rtsp_session.c') 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 +#include "config.h" +#ifndef HAVE_WINSOCK2_H +#define closesocket close +#include +#include +#include +#else +#include +#endif + + #include #include #include @@ -36,12 +47,10 @@ #include #include -#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" -- cgit v1.2.3