diff options
author | wm4 <wm4@nowhere> | 2019-06-30 01:23:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 9fd90c549c4022d7f9283adc1a97a076614c1458 (patch) | |
tree | 2961ad0c2d061fc21c3adfb248e132cb1eb0d536 /wscript | |
parent | fb8d240c4d045ca254aa6693c48aecc75954cba0 (diff) | |
download | mpv-9fd90c549c4022d7f9283adc1a97a076614c1458.tar.bz2 mpv-9fd90c549c4022d7f9283adc1a97a076614c1458.tar.xz |
build: better POSIX check
This is the "official" method to do this.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -156,9 +156,7 @@ main_dependencies = [ }, { 'name': 'posix', 'desc': 'POSIX environment', - # 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)'), + 'func': check_statement(['unistd.h'], 'long x = _POSIX_VERSION'), }, { 'name': '--android', 'desc': 'Android environment', |