summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-04 10:47:57 +0200
committerwm4 <wm4@nowhere>2017-04-04 10:47:57 +0200
commit6063cd569dafc1c6a0b4e9b0dfc6b9bf20461720 (patch)
tree4885caf7a547c6d4c39568a1f947f370cffd081c /options
parent0e4531440d3d87e9bddc6c46c88110c781f2bf1b (diff)
downloadmpv-6063cd569dafc1c6a0b4e9b0dfc6b9bf20461720.tar.bz2
mpv-6063cd569dafc1c6a0b4e9b0dfc6b9bf20461720.tar.xz
parse_commandline: guard glob() use
Might make porting to batshit environments simpler.
Diffstat (limited to 'options')
-rw-r--r--options/parse_commandline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index b90912e786..f51d19deff 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -107,7 +107,7 @@ static bool split_opt(struct parse_state *p)
return false;
}
-#ifdef __MINGW32__
+#if defined(__MINGW32__) && (HAVE_GLOB || HAVE_GLOB_WIN32_REPLACEMENT)
static void process_non_option(struct playlist *files, const char *arg)
{
glob_t gg;