[OpenIndiana-discuss] struct msghdr and _XPG4_2

James Carlson carlsonj at workingcode.com
Wed May 25 14:48:08 UTC 2016


On 5/25/2016 9:55 AM, Aurélien Larcher wrote:
> On Wed, May 25, 2016 at 3:25 PM, James Carlson <carlsonj at workingcode.com>
> wrote:
> 
>> It's not terrifically hard to do -- setting -D_XOPEN_SOURCE=600 on a
>> compiler compatible with at least c99 and linking with -lxnet should set
>> you up with a SUSv3 environment -- but, no, it's not automagical.
>>
> 
> True but the main issue is that on other systems compliance with standards
> may be incorrect... and so would software written on them.
> Even on FreeBSD I have seen _XOPEN_SOURCE=500 assuming c99.
> I think Alexander found more of them hardcoded in source files while
> testing gcc 5.3...

Yikes.  That's not right.  Compilation environment issues like this
should be dealt with in Makefiles and/or build scripts.  Putting them in
the source files just makes life more difficult.  :-/

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the openindiana-discuss mailing list