From 7137f99658903e88ce78411097164c8caec661c8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 13 Jun 2020 22:37:04 +0000 Subject: [PATCH] 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.) --- kernel/log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2