options: fnmatch: check existence instead of posix

This commit is contained in:
Avi Halachmi (:avih) 2016-11-08 18:45:41 +02:00 committed by wm4
parent c676c31815
commit 616ecd9365
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,6 @@
#include <stdbool.h>
#include <pthread.h>
#define HAVE_FNMATCH HAVE_POSIX
#if HAVE_FNMATCH
#include <fnmatch.h>
#endif

View File

@ -127,6 +127,10 @@ main_dependencies = [
# This should be good enough.
'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',