$OpenBSD: patch-src_configure_in,v 1.5 2010/12/27 16:07:08 jasper Exp $
--- src/configure.in.orig	Thu Dec 23 01:17:25 2010
+++ src/configure.in	Thu Dec 23 01:18:18 2010
@@ -500,6 +500,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=""
@@ -575,7 +579,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
 		  ],
