From 43130a3d857f1a95b7526192d04cfef1469ee4a9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 9 Feb 2002 15:02:48 +0000 Subject: [PATCH] FreeBSD 3.x has pthreads support, but _POSIX_THREADS isn't defined by [SVN r12771] --- include/boost/config/platform/bsd.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/config/platform/bsd.hpp b/include/boost/config/platform/bsd.hpp index 101adfd1..0af5364f 100644 --- a/include/boost/config/platform/bsd.hpp +++ b/include/boost/config/platform/bsd.hpp @@ -28,6 +28,14 @@ # define BOOST_HAS_NL_TYPES_H #endif +// +// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in +// and not in +// +#if defined(__FreeBSD__) && (__FreeBSD__ <= 3) +# define BOOST_HAS_PTHREADS +#endif + // // No wide character support in the BSD header files: //