# HG changeset patch # User faust3 # Date 1049488341 0 # Node ID 9cdbcd86c176d4da78a8276174db76b78f3aba14 # Parent 298e261aecd7a6d8abd1a3eade0be352d774efa4 temporary disable mf support for systems without glob diff -r 298e261aecd7 -r 9cdbcd86c176 libmpdemux/mf.c --- a/libmpdemux/mf.c Fri Apr 04 20:12:24 2003 +0000 +++ b/libmpdemux/mf.c Fri Apr 04 20:32:21 2003 +0000 @@ -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 @@ 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 @@ 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 -r 298e261aecd7 -r 9cdbcd86c176 libmpdemux/yuv4mpeg.h --- a/libmpdemux/yuv4mpeg.h Fri Apr 04 20:12:24 2003 +0000 +++ b/libmpdemux/yuv4mpeg.h Fri Apr 04 20:32:21 2003 +0000 @@ -31,6 +31,10 @@ //#include "mp_msg.h" #include "stream.h" +#ifdef __MINGW32__ +typedef long ssize_t; +#endif + /************************************************************************ * error codes returned by y4m_* functions