X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmm%2Fboehm-gc%2Fgc_dlopen.c;h=d0a26e164cbdee8cd5b31b3ab363904cac24f44f;hb=c83bff94e40ee0a218a39931af17814d1a42cb5c;hp=a069a041d45c1217f787128972cd740f7cdf03da;hpb=8275714acb4ee70328526bd43e7cb54869119f51;p=cacao.git diff --git a/src/mm/boehm-gc/gc_dlopen.c b/src/mm/boehm-gc/gc_dlopen.c index a069a041d..d0a26e164 100644 --- a/src/mm/boehm-gc/gc_dlopen.c +++ b/src/mm/boehm-gc/gc_dlopen.c @@ -23,8 +23,6 @@ * library. -HB */ -#include "config.h" - #include "private/gc_priv.h" # if (defined(GC_PTHREADS) && !defined(GC_DARWIN_THREADS)) && !defined(GC_WIN32_PTHREADS)\ @@ -39,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 */ @@ -48,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()) {