]> 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>
Sun, 17 Jun 2012 16:25:09 +0000 (20:25 +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 93088653873e53defa8c8e63eddd2109301a052d..63e642f9bd5312cfda590c1ffe743191db86670d 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 c110689097fb1f0ee851e64e5fbf7de5f938149d..4307b48cc0dc054ec1833bf51f92131b7ae50199 100644 (file)
@@ -1,4 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+
 #ifndef GC_THREADS
 # define GC_THREADS
 #endif