what is _XOPEN_SOURCE=500 needed for?

Daniel Stone daniel at fooishbar.org
Wed May 25 18:01:02 PDT 2005


On Wed, May 25, 2005 at 05:35:04PM -0400, Soeren Sandmann wrote:
> Daniel Stone wrote:
> >So, at a guess, we do something like this:
> >x11proto.pc.in: Cflags: $(FDBITSFLAGS)
> > 
> >
> I basically agree that this is right.
> 
> The other possibility is to add a new installed header file, called 
> something like
> Xproto-config.h, then conditionally include that in all public headers. 

You may still get system headers including <sys/select.h> first; it's by
no means a given that it'll work if you define it in a header.

> One of the advantages of auto* over imake is that it has the ability to 
> detect at compile-time
> what flags are needed. If possible using that feature is better than 
> just magically
> asserting that "_XOPEN_SOURCE is needed on Linux". So I prefer something 
> like
> the following instead:
> [...]

That is, indeed, far nicer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.x.org/archives/xorg-modular/attachments/20050526/5dd6aad0/attachment.pgp


More information about the xorg-modular mailing list