From: whitequark Date: Sat, 13 Jun 2020 22:37:04 +0000 (+0000) Subject: kernel: guard include of signal.h more precisely. X-Git-Tag: working-ls180~473^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7137f99658903e88ce78411097164c8caec661c8;p=yosys.git kernel: guard include of signal.h more precisely. Upgrading to WASI SDK 11.0 caused the WASM build to fail because WASM does not have signals. (Arguably Yosys was broken even before, it was just broken silently.) --- diff --git a/kernel/log.h b/kernel/log.h index 516744b50..63590c489 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -55,7 +55,9 @@ #else # include # include -# include +# if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) +# include +# endif #endif #if defined(_MSC_VER)