diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-21 21:26:21 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-21 21:26:21 +0000 |
commit | 21d44ebec7dbdd55709dd52f6d940ce8c55cb423 (patch) | |
tree | 41f187751b214ac403322be67f628a66dd116db7 /libs/minisat/00_PATCH_wasm.patch | |
parent | d5d0cc88d272b85c3be3677993596dcfa82d579f (diff) | |
download | yosys-21d44ebec7dbdd55709dd52f6d940ce8c55cb423.tar.gz yosys-21d44ebec7dbdd55709dd52f6d940ce8c55cb423.tar.bz2 yosys-21d44ebec7dbdd55709dd52f6d940ce8c55cb423.zip |
minisat: add missing include guard for WASI.
Including signal.h used to be allowed in WASI by mistake, but it's
an error since SDK 11.
Diffstat (limited to 'libs/minisat/00_PATCH_wasm.patch')
-rw-r--r-- | libs/minisat/00_PATCH_wasm.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/minisat/00_PATCH_wasm.patch b/libs/minisat/00_PATCH_wasm.patch index 0bcff7d77..384930047 100644 --- a/libs/minisat/00_PATCH_wasm.patch +++ b/libs/minisat/00_PATCH_wasm.patch @@ -32,3 +32,15 @@ #endif +#endif } +--- System.cc ++++ System.cc +@@ -24,7 +24,9 @@ + OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + **************************************************************************************************/ + ++#if !defined(__wasm) + #include <signal.h> ++#endif + #include <stdio.h> + + #include "System.h" |