diff --git a/src/common/mythread.h b/src/common/mythread.h index 10ea2d42..bec69b44 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