From 549160fece314d99726d14046cae5808a4435281 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 12 Apr 2012 23:53:50 +0400 Subject: [PATCH] Fix disclaim_test to get GC_PTHREADS macro defined if multi-threaded * tests/disclaim_test.c: Include config.h if HAVE_CONFIG_H to define GC_PTHREADS (indirectly) if multi-threading is on. --- tests/disclaim_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/disclaim_test.c b/tests/disclaim_test.c index 11eb17ec..3a57bc07 100644 --- a/tests/disclaim_test.c +++ b/tests/disclaim_test.c @@ -20,6 +20,11 @@ #include #include +#ifdef HAVE_CONFIG_H + /* For GC_[P]THREADS */ +# include "private/config.h" +#endif + #include "gc_disclaim.h" #define my_assert(e) \ -- 2.40.0