From bd4f575567ad87839f5c33bcc2ac37995c10f2fb Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 17 Aug 2002 13:33:41 +0000 Subject: [PATCH] HPUX 10.20 patch (problem reported by Tom Matelich) [SVN r14943] --- include/boost/detail/lwm_pthreads.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/detail/lwm_pthreads.hpp b/include/boost/detail/lwm_pthreads.hpp index ba8d762..8ee5550 100644 --- a/include/boost/detail/lwm_pthreads.hpp +++ b/include/boost/detail/lwm_pthreads.hpp @@ -37,7 +37,14 @@ public: lightweight_mutex() { + +// HPUX 10.20 / DCE has a nonstandard pthread_mutex_init + +#if defined(__hpux) && defined(_DECTHREADS_) + pthread_mutex_init(&m_, pthread_mutexattr_default); +#else pthread_mutex_init(&m_, 0); +#endif } ~lightweight_mutex()