summaryrefslogtreecommitdiff
path: root/src/itree.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-11-05 15:19:42 +0200
committerEli Zaretskii <eliz@gnu.org>2022-11-05 15:19:42 +0200
commit26460328bc92605f5c3a41dc1963519299c6e266 (patch)
treefdbc9e31ab801b9c707b1dfed9a40ce24bcff82f /src/itree.c
parentae497d75f74f7ef0830f6cb760fa786a589e290d (diff)
downloademacs-26460328bc92605f5c3a41dc1963519299c6e266.tar.gz
Fix the unexec build
* src/itree.c (forget_itree): New function. * src/emacs.c (Fdump_emacs): Call 'forget_itree'.
Diffstat (limited to 'src/itree.c')
-rw-r--r--src/itree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/itree.c b/src/itree.c
index cd37da18b89..c5e43bb0289 100644
--- a/src/itree.c
+++ b/src/itree.c
@@ -294,6 +294,14 @@ init_itree (void)
iter = itree_iterator_create (NULL);
}
+#ifdef HAVE_UNEXEC
+void
+forget_itree (void)
+{
+ iter = NULL;
+}
+#endif
+
struct check_subtree_result
{
/* Node count of the tree. */