From 3ada4c5873dba3de8d1a3f3f21e63b7e2c8b9232 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 19 Dec 2002 11:38:07 +0000 Subject: [PATCH] MacOS fixes for Carbon builds [SVN r16662] --- include/boost/config/platform/macos.hpp | 5 ++++- include/boost/config/posix_features.hpp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/boost/config/platform/macos.hpp b/include/boost/config/platform/macos.hpp index 2fbea49e..dfa8eff4 100644 --- a/include/boost/config/platform/macos.hpp +++ b/include/boost/config/platform/macos.hpp @@ -19,7 +19,9 @@ # define BOOST_HAS_UNISTD_H # endif // boilerplate code: -# include +# ifndef TARGET_CARBON +# include +# endif # ifndef BOOST_HAS_STDINT_H # define BOOST_HAS_STDINT_H # endif @@ -60,3 +62,4 @@ # endif #endif + diff --git a/include/boost/config/posix_features.hpp b/include/boost/config/posix_features.hpp index 2d9ec29f..fad37556 100644 --- a/include/boost/config/posix_features.hpp +++ b/include/boost/config/posix_features.hpp @@ -31,7 +31,7 @@ // Strictly speaking this may catch platforms with a // non-functioning stub , but such occurrences should // occur very rarely if at all. -# if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS) +# if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_MPTASKS) # define BOOST_HAS_PTHREADS # endif @@ -69,3 +69,4 @@ # endif # endif +