From f477d972b5c7cbf6d291a86f13647eee4a7da043 Mon Sep 17 00:00:00 2001 From: pancake Date: Wed, 25 Aug 2021 16:53:08 +0200 Subject: [PATCH] Fix the wasi build --- libr/util/deps.mk | 2 +- libr/util/thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libr/util/deps.mk b/libr/util/deps.mk index 8e556523cd..ca255b20ad 100644 --- a/libr/util/deps.mk +++ b/libr/util/deps.mk @@ -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 diff --git a/libr/util/thread.c b/libr/util/thread.c index f0111f3712..da4f06ce44 100644 --- a/libr/util/thread.c +++ b/libr/util/thread.c @@ -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)