$OpenBSD$
--- src/boehm-gc/pthread_support.c.orig	Mon Feb 13 18:14:20 2006
+++ src/boehm-gc/pthread_support.c	Mon Apr 10 07:56:57 2006
@@ -51,8 +51,17 @@
 
 # include "private/pthread_support.h"
 
-# if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \
-     && !defined(GC_WIN32_THREADS)
+#ifndef NEED_PTHREAD_STOP_WORLD
+#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \
+     && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS) \
+     && !defined(GC_OPENBSD_PTHREADS)
+#define NEED_PTHREAD_STOP_WORLD	1
+#else
+#define NEED_PTHREAD_STOP_WORLD	0
+#endif
+#endif
+
+#if NEED_PTHREAD_STOP_WORLD
 
 # if defined(GC_HPUX_THREADS) && !defined(USE_PTHREAD_SPECIFIC) \
      && !defined(USE_COMPILER_TLS)
