Account for broken pthreads on HPUX

[SVN r16519]
This commit is contained in:
Dave Abrahams
2002-12-04 17:58:12 +00:00
parent 0c41779a38
commit 09ab4bc87b

View File

@@ -22,6 +22,13 @@
#define BOOST_HAS_UNISTD_H
#include <boost/config/posix_features.hpp>
// 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