openbsd-ports/lang/swi-prolog/patches/patch-src_configure_in
2011-09-17 16:06:32 +00:00

24 lines
742 B
Plaintext

$OpenBSD: patch-src_configure_in,v 1.7 2011/09/17 16:06:32 edd Exp $
--- src/configure.in.orig Fri Aug 19 15:31:28 2011
+++ src/configure.in Sat Sep 17 11:34:22 2011
@@ -498,6 +498,10 @@ case "$PLARCH" 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=""
@@ -587,7 +591,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
],