summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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' ],