> > I guess we could check for the _XOPEN_SOURCE value in posix_features.hpp as > > well as for _XOPEN_VERSION, maybe this is the right thing to do for all > > Unixes, I don't know, anyone any ideas? > > http://www.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html#t ag_02_02_01_01 > > According to the above link a XSI conformant application should define > _XOPEN_SOURCE and set it to 600. So it should be defined in all posix > compliant unices. But as you said, this should not be defined in boost > headers as this doesn't guarantee that all system headers one may use will > have the same feature set defined. An FAQ in the threads documentation seems > like the least boost can do about it. Even better, albeit intrusive, if > _XOPEN_SOURCE is not defined posix_features.hpp emits a warning pointing the > user to the docs and advise him to define _XOPEN_SOURCE = 600 when compiling > his application.
Agreed. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost