From 0c185d95e2e3ff8c4008cc49553ea487c865248d Mon Sep 17 00:00:00 2001 From: faust3 Date: Fri, 4 Apr 2003 20:32:21 +0000 Subject: temporary disable mf support for systems without glob git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9834 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/mf.c | 10 +++++++++- libmpdemux/yuv4mpeg.h | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libmpdemux/mf.c b/libmpdemux/mf.c index 908aa98449..18ec48e623 100644 --- a/libmpdemux/mf.c +++ b/libmpdemux/mf.c @@ -5,13 +5,16 @@ #include #include #include -#include #include #include #include #include "config.h" +#ifdef HAVE_GLOB +#include +#endif + #include "mp_msg.h" #include "help_mp.h" #include "stream.h" @@ -24,6 +27,7 @@ float mf_fps = 25.0; char * mf_type = NULL; //"jpg"; mf_t* open_mf(char * filename){ +#ifdef HAVE_GLOB glob_t gg; struct stat fs; int i; @@ -110,5 +114,9 @@ mf_t* open_mf(char * filename){ exit_mf: free( fname ); return mf; +#else + mp_msg(MSGT_STREAM,MSGL_FATAL,"[mf] mf support is disabled on your os\n"); + return 0; +#endif } diff --git a/libmpdemux/yuv4mpeg.h b/libmpdemux/yuv4mpeg.h index 7ada483967..af8293b202 100644 --- a/libmpdemux/yuv4mpeg.h +++ b/libmpdemux/yuv4mpeg.h @@ -31,6 +31,10 @@ //#include "mp_msg.h" #include "stream.h" +#ifdef __MINGW32__ +typedef long ssize_t; +#endif + /************************************************************************ * error codes returned by y4m_* functions -- cgit v1.2.3