Boost logo

Boost :

Subject: Re: [boost] [context] a couple of build fixes for Solaris (10)
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-07-07 06:54:19


Am 07.07.2012 11:23, schrieb Bjorn Reese:
> 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
>

_XOPEN_SOURCE=1 and _XOPEN_SOURCE_EXTENDED=1 applied to compiler on Solaris


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