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.)
This commit is contained in:
whitequark 2020-06-13 22:37:04 +00:00
parent 971a765155
commit 7137f99658
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@
#else
# include <sys/time.h>
# include <sys/resource.h>
# include <signal.h>
# if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
# include <signal.h>
# endif
#endif
#if defined(_MSC_VER)