changeset 9833:9cdbcd86c176

temporary disable mf support for systems without glob
author faust3
date Fri, 04 Apr 2003 20:32:21 +0000
parents 298e261aecd7
children 5c639ec8c39e
files libmpdemux/mf.c libmpdemux/yuv4mpeg.h
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <string.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <glob.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
 #include "config.h"
 
+#ifdef HAVE_GLOB
+#include <glob.h>
+#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
 }
 
--- 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