Fix the wasi build

This commit is contained in:
pancake 2021-08-25 16:53:08 +02:00 committed by GitHub
parent 9912c3ee0b
commit f477d972b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
include $(SHLR)/sdb.mk
include $(SHLR)/zip/deps.mk
include $(SHLR)/../config-user.mk
# include $(SHLR)/../config-user.mk
LDFLAGS+=-lm

View File

@ -125,7 +125,7 @@ R_API bool r_th_getname(RThread *th, char *name, size_t len) {
}
R_API bool r_th_setaffinity(RThread *th, int cpuid) {
#if __wasi__
#if defined(__wasi__) || defined(_WASI_EMULATED_SIGNAL)
return true;
#elif __linux__
#if defined(__GLIBC__) && defined (__GLIBC_MINOR__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)