diff --git a/packages/l/libintl/port/0.21/xmake.lua b/packages/l/libintl/port/0.21/xmake.lua index ac872e7f7..6c72cc037 100644 --- a/packages/l/libintl/port/0.21/xmake.lua +++ b/packages/l/libintl/port/0.21/xmake.lua @@ -229,7 +229,11 @@ void test() {environ.foo = 1;}]], {includes = is_plat("windows") and "stdlib.h" -- config.h variables configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"}) -configvar_check_links("HAVE_PTHREAD_API", "pthread") +if is_plat("android") then + configvar_check_cfuncs("HAVE_PTHREAD_API", "pthread_create", {includes = "pthread.h"}) +else + configvar_check_links("HAVE_PTHREAD_API", "pthread") +end configvar_check_csnippets("HAVE_ALLOCA", [[ #ifdef __GNUC__ # define alloca __builtin_alloca diff --git a/packages/l/libintl/port/0.22.3/xmake.lua b/packages/l/libintl/port/0.22.3/xmake.lua index 83e38c43c..e0b5c4533 100644 --- a/packages/l/libintl/port/0.22.3/xmake.lua +++ b/packages/l/libintl/port/0.22.3/xmake.lua @@ -243,7 +243,11 @@ end end configvar_check_ctypes("HAVE_STDINT_H_WITH_UINTMAX", "uintmax_t", {includes = "stdint.h"}) configvar_check_ctypes("HAVE_UINTMAX_T", "uintmax_t", {includes = "stdint.h"}) -configvar_check_links("HAVE_PTHREAD_API", "pthread") +if is_plat("android") then + configvar_check_cfuncs("HAVE_PTHREAD_API", "pthread_create", {includes = "pthread.h"}) +else + configvar_check_links("HAVE_PTHREAD_API", "pthread") +end configvar_check_ctypes("HAVE_PTHREAD_RWLOCK", "pthread_rwlock_t", {includes = "pthread.h"}) configvar_check_cfuncs("HAVE_THRD_CREATE", "thrd_create", {includes = "threads.h"}) configvar_check_csnippets("HAVE_ALLOCA", [[