From: Ivan Maidanski Date: Sun, 17 Jun 2012 16:25:09 +0000 (+0400) Subject: Fix thread-related tests for pthreads-w32 X-Git-Tag: gc7_4_0~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=709d127c2a8a1e55dce61fb2e4d5786a46426ed1;p=gc Fix thread-related tests for pthreads-w32 * tests/initsecondarythread.c: Include "private/config.h" if HAVE_CONFIG_H (mostly to have GC_WIN32_PTHREADS defined for pthreads-w32 target). * tests/thread_leak_test.c: Likewise. * tests/threadkey_test.c: Likewise. --- diff --git a/tests/initsecondarythread.c b/tests/initsecondarythread.c index 93088653..63e642f9 100644 --- a/tests/initsecondarythread.c +++ b/tests/initsecondarythread.c @@ -15,6 +15,10 @@ * thread. */ +#ifdef HAVE_CONFIG_H +# include "private/config.h" +#endif + #ifndef GC_THREADS # define GC_THREADS #endif diff --git a/tests/thread_leak_test.c b/tests/thread_leak_test.c index 3c3fc1e8..0710fc2c 100644 --- a/tests/thread_leak_test.c +++ b/tests/thread_leak_test.c @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include "private/config.h" +#endif + #ifndef GC_THREADS # define GC_THREADS #endif diff --git a/tests/threadkey_test.c b/tests/threadkey_test.c index c1106890..4307b48c 100644 --- a/tests/threadkey_test.c +++ b/tests/threadkey_test.c @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include "private/config.h" +#endif + #ifndef GC_THREADS # define GC_THREADS #endif