1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

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
This commit is contained in:
Ludovic Court`es 2006-04-20 13:07:47 +00:00 committed by Ludovic Courtès
parent d9c82e2051
commit 89f423d5ad
3 changed files with 11 additions and 1 deletions

View file

@ -30,7 +30,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

View file

@ -29,6 +29,9 @@
#include <pthread.h>
#define GC_THREADS 1
#include <gc/gc.h>
#include "libguile/iselect.h"
#if (SCM_ENABLE_DEPRECATED == 1)

View file

@ -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