* libguile/coop-defs.h: If `GUILE_PTHREAD_COMPAT' is defined, then define
`GC_THREADS' and include <gc/gc.h> after <pthread.h>.
* libguile/coop-pthreads.h: Likewise.
* libguile/pthread-threads.h: Likewise.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-10
#endif
#ifdef GUILE_PTHREAD_COMPAT
-#include <pthread.h>
+# include <pthread.h>
+
+# define GC_THREADS 1
+# include <gc/gc.h>
#endif
/* This file is included by threads.h, which, in turn, is included by
#include <pthread.h>
+#define GC_THREADS 1
+#include <gc/gc.h>
+
#include "libguile/iselect.h"
#if (SCM_ENABLE_DEPRECATED == 1)
#include <pthread.h>
#include <sched.h>
+/* `libgc' intercepts pthread calls by defining wrapping macros. */
+#define GC_THREADS 1
+#include <gc/gc.h>
+
/* Threads
*/
#define scm_i_pthread_t pthread_t