From 1ec4e9222b0bdad8f58c90ce471d08b7cb03751f Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 5 Dec 2023 23:37:31 +0800 Subject: [PATCH] improve check --- xmake/check_interfaces.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/check_interfaces.lua b/xmake/check_interfaces.lua index 3295dd589..bff4b7d48 100644 --- a/xmake/check_interfaces.lua +++ b/xmake/check_interfaces.lua @@ -203,7 +203,8 @@ function _check_interfaces(target) _check_module_cfuncs(target, "posix", "sys/stat.h", "mkfifo") _check_module_cfuncs(target, "posix", "sys/mman.h", "mmap") _check_module_cfuncs(target, "posix", "sys/stat.h", "futimens", "utimensat") - elseif not target:is_plat("windows", "wasm") then + end + if not target:is_plat("windows", "wasm") then _check_module_cfuncs(target, "posix", "spawn.h", "posix_spawnp", "posix_spawn_file_actions_addchdir_np") _check_module_cfuncs(target, "posix", "semaphore.h", "sem_init") end