mirror of https://github.com/mpv-player/mpv
options: fnmatch: check existence instead of posix
This commit is contained in:
parent
c676c31815
commit
616ecd9365
|
@ -29,7 +29,6 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#define HAVE_FNMATCH HAVE_POSIX
|
|
||||||
#if HAVE_FNMATCH
|
#if HAVE_FNMATCH
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
4
wscript
4
wscript
|
@ -127,6 +127,10 @@ main_dependencies = [
|
||||||
# This should be good enough.
|
# This should be good enough.
|
||||||
'func': check_statement(['poll.h', 'unistd.h', 'sys/mman.h'],
|
'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)'),
|
'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',
|
'name': 'posix-or-mingw',
|
||||||
'desc': 'development environment',
|
'desc': 'development environment',
|
||||||
|
|
Loading…
Reference in New Issue