summaryrefslogtreecommitdiff
path: root/mk/pthread.buildlink3.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-02-06 11:06:19 +0000
committerobache <obache@pkgsrc.org>2010-02-06 11:06:19 +0000
commit4bf31da954b3a36f31e267fdef09673a8335ed30 (patch)
tree95731f6fb5b92bdd2eb476d3af913644f95a6f8c /mk/pthread.buildlink3.mk
parent67e6e6912084cacb9965a8eed49b8b7fe7b529ac (diff)
downloadpkgsrc-4bf31da954b3a36f31e267fdef09673a8335ed30.tar.gz
Haiku does not have /usr/include/pthread.h,
but have native pthread support and pthread.h in include path.
Diffstat (limited to 'mk/pthread.buildlink3.mk')
-rw-r--r--mk/pthread.buildlink3.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/pthread.buildlink3.mk b/mk/pthread.buildlink3.mk
index 918f8b38e70..ab6ee8a7413 100644
--- a/mk/pthread.buildlink3.mk
+++ b/mk/pthread.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.buildlink3.mk,v 1.28 2009/03/20 19:25:01 joerg Exp $
+# $NetBSD: pthread.buildlink3.mk,v 1.29 2010/02/06 11:06:19 obache Exp $
#
# The pthreads strategy for pkgsrc is to "bless" a particular pthread
# package as the Official Pthread Replacement (OPR). The following
@@ -87,7 +87,7 @@ PTHREAD_OPTS?= # empty
# of /usr/include/pthread.h (we might want to make this check stricter).
#
.undef PTHREAD_TYPE
-.if exists(/usr/include/pthread.h) && \
+.if (exists(/usr/include/pthread.h) || ${OPSYS} == "Haiku") && \
!empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
PTHREAD_TYPE= native
.else