diff options
author | Jan Ekström <jeebjp@gmail.com> | 2017-07-25 22:14:06 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2017-08-05 01:51:29 +0300 |
commit | 0389852db023cd7a3c2a31424f8835ccbc846a15 (patch) | |
tree | 352caa2263a4699c74334e768532f4a5fec82dbd /demux | |
parent | 1a0d92aeca573bab24928f5e5471b247d46ce9d6 (diff) | |
download | mpv-0389852db023cd7a3c2a31424f8835ccbc846a15.tar.bz2 mpv-0389852db023cd7a3c2a31424f8835ccbc846a15.tar.xz |
{demux_mf,osdep/io}: disable glob usage when it is not available
This currently is only limited to Android. Its stdlib contains the
things that mpv's POSIX check checks for, but unfortunately not
glob().
This fixes Android compilation broken in 70a70b9da .
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_mf.c | 2 |
1 files changed, 2 insertions, 0 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); |