summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-11-23 07:37:02 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-11-23 07:37:02 +0300
commit9129db0501ba4a0724d60e49726b1ba68d88a0d6 (patch)
tree4a8b33610d17695df76b91b9e57b2d8eefc6f804 /os_dep.c
parente4247e8e31621563d53af29910d51ffe1427d3f2 (diff)
downloadbdwgc-9129db0501ba4a0724d60e49726b1ba68d88a0d6.tar.gz
Fix call to undeclared function emscripten_scan_registers
(fix of commit e4247e8e3) Issue #504 (bdwgc). * os_dep.c [!THREADS && EMSCRIPTEN]: Include emscripten.h. Co-authored-by: Jukka Jylanki <jujjyl@gmail.com>
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os_dep.c b/os_dep.c
index dd3ef380..2fd63e0e 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2815,6 +2815,8 @@ GC_INNER void GC_unmap_gap(ptr_t start1, size_t bytes1, ptr_t start2,
#ifndef THREADS
# ifdef EMSCRIPTEN
+# include <emscripten.h>
+
static void scan_regs_cb(void *begin, void *end)
{
GC_push_all_stack((ptr_t)begin, (ptr_t)end);