Skip to content

Commit

Permalink
fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed May 22, 2024
1 parent a410f07 commit 02c11a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ check_interfaces() {
check_module_cfuncs "posix" "dlfcn.h" "dlopen"
check_module_cfuncs "posix" "sys/stat.h fcntl.h" "open" "stat64" "lstat64"
check_module_cfuncs "posix" "unistd.h" "gethostname"
check_module_cfuncs "posix" "ifaddrs.h" "getifaddrs"
check_module_cfuncs "posix" "ifaddrs.h net/if_dl.h" "getifaddrs"
check_module_cfuncs "posix" "semaphore.h" "sem_init"
check_module_cfuncs "posix" "unistd.h" "getpagesize" "sysconf"
check_module_cfuncs "posix" "sched.h" "sched_yield" "sched_setaffinity" # need _GNU_SOURCE
Expand Down
2 changes: 1 addition & 1 deletion xmake/check_interfaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function _check_interfaces(target)
_check_module_cfuncs(target, "posix", "dlfcn.h", "dlopen")
_check_module_cfuncs(target, "posix", {"sys/stat.h", "fcntl.h"}, "open", "stat64", "lstat64")
_check_module_cfuncs(target, "posix", "unistd.h", "gethostname")
_check_module_cfuncs(target, "posix", "ifaddrs.h", "getifaddrs")
_check_module_cfuncs(target, "posix", {"ifaddrs.h", "net/if_dl.h"}, "getifaddrs")
_check_module_cfuncs(target, "posix", "unistd.h", "getpagesize", "sysconf")
_check_module_cfuncs(target, "posix", "sched.h", "sched_yield", "sched_setaffinity") -- need _GNU_SOURCE
_check_module_cfuncs(target, "posix", "regex.h", "regcomp", "regexec")
Expand Down

0 comments on commit 02c11a4

Please sign in to comment.