On 29/10/2015 09:01, Vicente J. Botet Escriba wrote:
Hi John,
I'm having an issue with gcc-5.1 on MacOs.
BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE is not defined.
I see that there are things like
#if __MACH__ && !defined(_MSL_USING_MSL_C) ...
# if (__GNUC__ == 4)
// Both gcc and intel require these. # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE # define BOOST_HAS_NANOSLEEP
# endif #else ... // BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE not defined here #endif
Wondering why the GCC version must be 4 and why when _MSL_USING_MSL_C is defined these PTHREAD attributes are not defined neither.
BTW, when I compile with version 4 everything works correctly.
I just don't think this stuff has been updated in a *long* while, plus I've never had access to MacOS so I just rely on what folks tell me, pushed the obvious change to >= rather than ==. BTW these should really be detected by posix_features.hpp, but aren't for some reason. John.