$OpenBSD$
--- src/boehm-gc/pthread_stop_world.c.orig	Mon Feb 13 18:14:20 2006
+++ src/boehm-gc/pthread_stop_world.c	Mon Apr 10 07:56:57 2006
@@ -2,8 +2,17 @@
 
 #include "private/pthread_support.h"
 
+#ifndef NEED_PTHREAD_STOP_WORLD
 #if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \
-     && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_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
 
 #include <signal.h>
 #include <semaphore.h>
