summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2016-11-08 18:45:41 +0200
committerwm4 <wm4@nowhere>2016-11-08 19:16:35 +0100
commit616ecd93650ab1e11e22e0e113f5031b66b4b9d4 (patch)
treed43eae3f2c3a2e3149d8be53a44ad84a3202b959
parentc676c31815b5c8bd9ba6eab968bbc0862eaa4bba (diff)
downloadmpv-616ecd93650ab1e11e22e0e113f5031b66b4b9d4.tar.bz2
mpv-616ecd93650ab1e11e22e0e113f5031b66b4b9d4.tar.xz
options: fnmatch: check existence instead of posix
-rw-r--r--options/m_config.c1
-rw-r--r--wscript4
2 files changed, 4 insertions, 1 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 9733dac3cd..1c5fe01293 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -29,7 +29,6 @@
#include <stdbool.h>
#include <pthread.h>
-#define HAVE_FNMATCH HAVE_POSIX
#if HAVE_FNMATCH
#include <fnmatch.h>
#endif
diff --git a/wscript b/wscript
index 885b451be2..935279114b 100644
--- a/wscript
+++ b/wscript
@@ -128,6 +128,10 @@ main_dependencies = [
'func': check_statement(['poll.h', 'unistd.h', 'sys/mman.h'],
'struct pollfd pfd; poll(&pfd, 1, 0); fork(); int f[2]; pipe(f); munmap(f,0)'),
}, {
+ 'name': 'fnmatch',
+ 'desc': 'fnmatch()',
+ 'func': check_statement('fnmatch.h', 'fnmatch("", "", 0)')
+ }, {
'name': 'posix-or-mingw',
'desc': 'development environment',
'deps_any': [ 'posix', 'mingw' ],