$OpenBSD: patch-src_configure_in,v 1.6 2011/04/08 07:55:16 jasper Exp $
--- src/configure.in.orig	Mon Mar 28 18:10:29 2011
+++ src/configure.in	Fri Apr  8 09:40:12 2011
@@ -488,6 +488,10 @@ case "$ARCH" in
 		  [String used to prefix all symbols requested through dlsym()])
 	CMFLAGS="-no-cpp-precomp"
 	;;
+  *openbsd*)
+  	# Avoid conflict with GNUstep
+  	PL=swipl
+	;;
   *cygwin*)
 	SO_EXT="dll"
 	SO_pic=""
@@ -563,7 +567,7 @@ esac
 		  [ static pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
 		    pthread_mutex_lock(&m);
 		    pthread_mutex_unlock(&m);
-#if !(defined(_REENTRANT) || defined(_THREAD_SAFE))
+#if !(defined(_REENTRANT) || defined(_THREAD_SAFE)  || defined(_POSIX_THREADS))
 	this should not be compiled
 #endif
 		  ],
