From fc9cc5d066807eec1f29ca8c3d20358d161de21b Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sat, 24 Jan 2004 03:36:43 +0000 Subject: Correct pthread detection. Submitted by: Craig Rodrigues (maintainer) Tested by: kuriyama (on 4-stable and 5-current) --- devel/apr0/files/patch-apr_hints.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'devel/apr0/files/patch-apr_hints.m4') diff --git a/devel/apr0/files/patch-apr_hints.m4 b/devel/apr0/files/patch-apr_hints.m4 index 9e01ac75f936..0421617617bb 100644 --- a/devel/apr0/files/patch-apr_hints.m4 +++ b/devel/apr0/files/patch-apr_hints.m4 @@ -1,6 +1,6 @@ ---- apr-0.9.4/build/apr_hints.m4.orig Mon Jun 2 11:52:28 2003 -+++ apr-0.9.4/build/apr_hints.m4 Sun Nov 9 18:15:30 2003 -@@ -130,14 +130,15 @@ +--- apr-0.9.4/build/apr_hints.m4.orig Tue Dec 23 08:26:10 2003 ++++ apr-0.9.4/build/apr_hints.m4 Fri Jan 23 12:23:36 2004 +@@ -129,14 +129,17 @@ APR_ADDTO(CPPFLAGS, [-DNETBSD]) ;; *-freebsd*) @@ -16,8 +16,10 @@ - APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE]) + if test $os_version -lt "500016"; then + ac_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT" ++ ac_cv_pthreads_lib="none" + LIBS="$LIBS -pthread" + else ++ ac_cv_pthreads_cflags="none" + ac_cv_pthreads_lib="c_r" + fi ;; -- cgit v1.2.3