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 | |
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')
-rw-r--r-- | libs/minisat/00_PATCH_wasm.patch | 12 | ||||
-rw-r--r-- | libs/minisat/System.cc | 2 |
2 files changed, 14 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" diff --git a/libs/minisat/System.cc b/libs/minisat/System.cc index 345be8c4c..807e46c69 100644 --- a/libs/minisat/System.cc +++ b/libs/minisat/System.cc @@ -24,7 +24,9 @@ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 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" |