summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux_mf.c2
-rw-r--r--osdep/io.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/demux/demux_mf.c b/demux/demux_mf.c
index 012854a32f..04d37f4aef 100644
--- a/demux/demux_mf.c
+++ b/demux/demux_mf.c
@@ -115,6 +115,7 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct mp_log *log, char *filenam
char *fname = talloc_size(mf, strlen(filename) + 32);
+#if HAVE_GLOB
if (!strchr(filename, '%')) {
strcpy(fname, filename);
if (!strchr(filename, '*'))
@@ -137,6 +138,7 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct mp_log *log, char *filenam
globfree(&gg);
goto exit_mf;
}
+#endif
mp_info(log, "search expr: %s\n", filename);
diff --git a/osdep/io.h b/osdep/io.h
index 61d2a4af55..35c7c52691 100644
--- a/osdep/io.h
+++ b/osdep/io.h
@@ -28,7 +28,7 @@
#include <sys/stat.h>
#include <fcntl.h>
-#if HAVE_POSIX
+#if HAVE_GLOB_POSIX
#include <glob.h>
#endif