summaryrefslogtreecommitdiff
path: root/gc_dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc_dlopen.c')
-rw-r--r--gc_dlopen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gc_dlopen.c b/gc_dlopen.c
index 51659d1e..d0a26e16 100644
--- a/gc_dlopen.c
+++ b/gc_dlopen.c
@@ -37,6 +37,8 @@
# undef dlopen
# endif
+ GC_bool GC_collection_in_progress(void);
+
/* Make sure we're not in the middle of a collection, and make */
/* sure we don't start any. Returns previous value of GC_dont_gc. */
/* This is invoked prior to a dlopen call to avoid synchronization */
@@ -46,7 +48,7 @@
/* calls in either a multithreaded environment, or if the library */
/* initialization code allocates substantial amounts of GC'ed memory. */
/* But I don't know of a better solution. */
- static void disable_gc_for_dlopen()
+ static void disable_gc_for_dlopen(void)
{
LOCK();
while (GC_incremental && GC_collection_in_progress()) {