From eac7a5d03909291e62c671ead3d1c6a0ff84d4f0 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sat, 9 Mar 2013 22:27:59 +0100 Subject: [PATCH] if we have threads on windows, we have pthreads; inform bdw-gc of that * libguile/bdw-gc.h: If we have threads enabled on mingw32, explicitly mark GC_WIN32_PTHREADS. See http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/5564 for more info. --- libguile/bdw-gc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libguile/bdw-gc.h b/libguile/bdw-gc.h index 2e1fce27b..7aa757fed 100644 --- a/libguile/bdw-gc.h +++ b/libguile/bdw-gc.h @@ -1,7 +1,7 @@ #ifndef SCM_BDW_GC_H #define SCM_BDW_GC_H -/* Copyright (C) 2006, 2008, 2009, 2011, 2012 Free Software Foundation, Inc. +/* Copyright (C) 2006, 2008, 2009, 2011, 2012, 2013 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -37,6 +37,11 @@ routines. */ # define GC_NO_THREAD_REDIRECTS 1 +#ifdef __MINGW32__ +/* Rely on pthreads-w32. */ +#define GC_WIN32_PTHREADS +#endif + #endif #include