summaryrefslogtreecommitdiff
path: root/src/prebuilt/wasm2c_source_includes.cc
diff options
context:
space:
mode:
authorLandry Breuil <landryb@users.noreply.github.com>2023-04-26 17:06:45 +0200
committerGitHub <noreply@github.com>2023-04-26 08:06:45 -0700
commit805bebffde3c41fe4f1255deccc7bcb5b7e05dfa (patch)
tree9501e2e9a46660c32042db0265d7e3bccd3c6696 /src/prebuilt/wasm2c_source_includes.cc
parent3ec45c662746a7094914fccaebae4648765ef56e (diff)
downloadwabt-805bebffde3c41fe4f1255deccc7bcb5b7e05dfa.tar.gz
wabt-805bebffde3c41fe4f1255deccc7bcb5b7e05dfa.tar.bz2
wabt-805bebffde3c41fe4f1255deccc7bcb5b7e05dfa.zip
alloca() lives in <stdlib.h> on OpenBSD too (fixes #2216) (#2217)
per http://man.openbsd.org/alloca.3
Diffstat (limited to 'src/prebuilt/wasm2c_source_includes.cc')
-rw-r--r--src/prebuilt/wasm2c_source_includes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prebuilt/wasm2c_source_includes.cc b/src/prebuilt/wasm2c_source_includes.cc
index e7d69cb0..a17c5511 100644
--- a/src/prebuilt/wasm2c_source_includes.cc
+++ b/src/prebuilt/wasm2c_source_includes.cc
@@ -20,7 +20,7 @@ R"w2c_template(#include <malloc.h>
)w2c_template"
R"w2c_template(#define alloca _alloca
)w2c_template"
-R"w2c_template(#elif defined(__FreeBSD__)
+R"w2c_template(#elif defined(__FreeBSD__) || defined(__OpenBSD__)
)w2c_template"
R"w2c_template(#include <stdlib.h>
)w2c_template"