summaryrefslogtreecommitdiff
path: root/libguile/pthread-threads.h
diff options
context:
space:
mode:
authorLudovic Court`es <ludovic.courtes@laas.fr>2006-04-20 13:07:47 +0000
committerLudovic Courtès <ludo@gnu.org>2008-09-05 00:47:11 +0200
commit89f423d5ad0d3105e0dba70389c19c647239a260 (patch)
treeb6e8dc0abd1eb4533de1b52e008b00b7ffa06e2a /libguile/pthread-threads.h
parentd9c82e2051df5bb9eaa03c664a2a6bac88adaf2c (diff)
downloadguile-89f423d5ad0d3105e0dba70389c19c647239a260.tar.gz
Tell `libgc' that we're using POSIX threads. This fixes Guile on PPC.
* 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
Diffstat (limited to 'libguile/pthread-threads.h')
-rw-r--r--libguile/pthread-threads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/pthread-threads.h b/libguile/pthread-threads.h
index 06e735f75..e2ee7b2fa 100644
--- a/libguile/pthread-threads.h
+++ b/libguile/pthread-threads.h
@@ -28,6 +28,10 @@
#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