forked from enlightenment/efl
meson - for crossbuild move run check to just compile check
not as accurate but will do for cross build i guess for O_CLOEXEC
This commit is contained in:
parent
0259f98472
commit
c9f82d8e5d
|
@ -123,7 +123,7 @@ function_checks = [
|
|||
['dladdr', ['dlfcn.h'], ['dl'], '-D_GNU_SOURCE=1']
|
||||
]
|
||||
|
||||
open_cloexec = cc.run('''#include <sys/types.h>
|
||||
open_cloexec = cc.compiles('''#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
int main(int argc, char **argv) {
|
||||
|
@ -133,7 +133,7 @@ open_cloexec = cc.run('''#include <sys/types.h>
|
|||
}
|
||||
''',
|
||||
name : 'open works with O_CLOEXEC')
|
||||
if open_cloexec.compiled() and open_cloexec.returncode() == 0
|
||||
if open_cloexec
|
||||
config_h.set10('HAVE_OPEN_CLOEXEC', true)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue