From 9fd90c549c4022d7f9283adc1a97a076614c1458 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 30 Jun 2019 01:23:20 +0200 Subject: build: better POSIX check This is the "official" method to do this. --- wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wscript b/wscript index 75e90aceab..736844662a 100644 --- a/wscript +++ b/wscript @@ -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', -- cgit v1.2.3