Boost logo

Boost :

Subject: Re: [boost] [context] a couple of build fixes for Solaris (10)
From: Bjorn Reese (breese_at_[hidden])
Date: 2012-07-07 05:23:27


On 2012-07-06 15:12, Luke Elliott wrote:
> First is to get the definition of mprotect() that takes void * rather
> than char * by defining _XPG4_2, which causes a compilation failure with
> Solaris Studio 12.3.

_XPG4_2 is an internal macro. The correct macros to use are
_XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED. See for instance:

http://stackoverflow.com/questions/1034587/how-does-xpg4-2-and-other-defines-work-on-solaris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk