From: Ivan Maidanski Date: Tue, 19 Sep 2017 07:38:39 +0000 (+0300) Subject: Fix 'undefined reference to GC_wait_for_reclaim' linker error X-Git-Tag: v8.0.0~580 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b874d024be763a50e8554fc7ee54d518bf8a78c6;p=gc Fix 'undefined reference to GC_wait_for_reclaim' linker error (fix commit f4d690e) Issue #179 (bdwgc). * include/private/gc_pmark.h [HAVE_CONFIG_H]: Do not include config.h if already included from gc_priv.h (to avoid PARALLEL_MARK macro redefinition in config.h after it was undefined in gcconfig.h). --- diff --git a/include/private/gc_pmark.h b/include/private/gc_pmark.h index 1511763f..ec0ebc9f 100644 --- a/include/private/gc_pmark.h +++ b/include/private/gc_pmark.h @@ -22,7 +22,7 @@ #ifndef GC_PMARK_H #define GC_PMARK_H -#ifdef HAVE_CONFIG_H +#if defined(HAVE_CONFIG_H) && !defined(GC_PRIVATE_H) # include "config.h" #endif