]> granicus.if.org Git - gc/commitdiff
Fix thread-related tests for pthreads-w32
authorIvan Maidanski <ivmai@mail.ru>
Sun, 17 Jun 2012 16:25:09 +0000 (20:25 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 27 Jun 2012 19:22:56 +0000 (23:22 +0400)
* 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.

tests/initsecondarythread.c
tests/thread_leak_test.c
tests/threadkey_test.c

index f6a81177726aa8464f8cee0fdd29a124650e0a7b..9b2ca60e0ae33523db0b1634c14d00469b0b5bf9 100644 (file)
  * thread.
  */
 
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+
 #ifndef GC_THREADS
 # define GC_THREADS
 #endif
index 3c3fc1e8599e1895944944a748c41c4ff8da6a0a..0710fc2cc196731f6b599aa9bd916e7eeae9011d 100644 (file)
@@ -1,4 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+
 #ifndef GC_THREADS
 # define GC_THREADS
 #endif
index c41f28222a686a8b99602c82bd42de7fd0563bce..7635424d5594ce2a02aa08bff4834f0181ff34dc 100644 (file)
@@ -1,4 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+
 #ifndef GC_THREADS
 # define GC_THREADS
 #endif