From 09ab4bc87be8fc12ae383ad938a03501ac6940ee Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 4 Dec 2002 17:58:12 +0000 Subject: [PATCH] Account for broken pthreads on HPUX [SVN r16519] --- include/boost/config/platform/hpux.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/config/platform/hpux.hpp b/include/boost/config/platform/hpux.hpp index 77669461..4f2cf377 100644 --- a/include/boost/config/platform/hpux.hpp +++ b/include/boost/config/platform/hpux.hpp @@ -22,6 +22,13 @@ #define BOOST_HAS_UNISTD_H #include +// HPUX has an incomplete pthreads implementation, so it doesn't +// define _POSIX_THREADS, but it might be enough to implement +// Boost.Threads. +#if !defined(BOOST_HAS_PTHREADS) && defined(_POSIX_THREAD_ATTR_STACKADDR) +# define BOOST_HAS_PTHREADS +#endif + #ifndef BOOST_HAS_GETTIMEOFDAY // gettimeofday is always available #define BOOST_HAS_GETTIMEOFDAY