Skip to content

Commit

Permalink
Fix unexec compilation
Browse files Browse the repository at this point in the history
* src/pdumper.c (thaw_hash_tables): Now conditioned by
HAVE_PDUMPER.
(init_pdumper_once): No-op unless HAVE_PDUMPER.  Reported by
Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>.
  • Loading branch information
Eli-Zaretskii committed Apr 4, 2021
1 parent 69158a1 commit 44ed8f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pdumper.c
Expand Up @@ -5463,9 +5463,6 @@ Value is nil if this session was not started using a dump file.*/)
Fcons (Qdump_file_name, dump_fn));
}

#endif /* HAVE_PDUMPER */


static void
thaw_hash_tables (void)
{
Expand All @@ -5474,10 +5471,15 @@ thaw_hash_tables (void)
hash_table_thaw (AREF (hash_tables, i));
}

#endif /* HAVE_PDUMPER */


void
init_pdumper_once (void)
{
#ifdef HAVE_PDUMPER
pdumper_do_now_and_after_load (thaw_hash_tables);
#endif
}

void
Expand Down

0 comments on commit 44ed8f6

Please sign in to comment.