Re: [Boost-bugs] [Boost C++ Libraries] #3639: Boost.Thread doesn't build with Sun-5.9 on Linux

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3639: Boost.Thread doesn't build with Sun-5.9 on Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-15 16:10:03


#3639: Boost.Thread doesn't build with Sun-5.9 on Linux
--------------------------------------+-------------------------------------
  Reporter: johnmaddock | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.42.0 | Component: thread
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by johnmaddock):

 Apologies for the long delay, setting _ _USE_XOPEN2K doesn't work as
 features.h #undef's it.

 It gets set when _POSIX_C_SOURCE is >= 200112L (setting this on the
 command line does fix the issue BTW), but by default sun sets
 _POSIX_C_SOURCE to 199506L. So I think that the correct fix for enabling
 the feature is to check that _POSIX_TIMEOUTS is set, and that
 _POSIX_C_SOURCE >= 200112L as well. pthread.h BTW is the standard Linux
 system one.

 HTH, John.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3639#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC