From e1cd98ba15952d303f546b80c1b3a05e9bacb917 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 16 Mar 2021 05:52:41 +0000 Subject: Add missing includes to fix WASI build. --- common/nextpnr.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/nextpnr.cc') diff --git a/common/nextpnr.cc b/common/nextpnr.cc index 1229a7df..f8914ea5 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -18,6 +18,10 @@ */ #if defined(__wasm) +#include +#include +#include "log.h" + extern "C" { // FIXME: WASI does not currently support exceptions. void *__cxa_allocate_exception(size_t thrown_size) throw() { return malloc(thrown_size); } -- cgit v1.2.3