summaryrefslogtreecommitdiff
path: root/src/common/mythread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mythread.h')
-rw-r--r--src/common/mythread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 10ea2d42c24d..bec69b4487cb 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -78,7 +78,8 @@ do { \
} while (0)
-#if !(defined(_WIN32) && !defined(__CYGWIN__)) && !defined(__wasm__)
+#if !(defined(_WIN32) && !defined(__CYGWIN__)) \
+ && (!defined(__wasm__) || defined(__EMSCRIPTEN__))
// Use sigprocmask() to set the signal mask in single-threaded programs.
#include <signal.h>