From b874d024be763a50e8554fc7ee54d518bf8a78c6 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 19 Sep 2017 10:38:39 +0300 Subject: [PATCH] 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). --- include/private/gc_pmark.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0