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_2d~1^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8965b3c7cd1e73f51cd1688a75eaf034706e5775;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 f6a81177..9b2ca60e 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 c41f2822..7635424d 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