Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/include



On Wed, Apr 02, 2008 at 09:51:19AM +0200, Alan Barrett wrote:
> On Tue, 01 Apr 2008, Matthias Drochner wrote:
> > Modified Files:
> >     src/include: stdlib.h time.h unistd.h wordexp.h
> > 
> > Log Message:
> > everyone else assumes that defining "_XOPEN_SOURCE" means XPG4.2,
> > so remove comparisions against the numerical values "3" or "4"
> 
> Is this really a good idea?  I'd prefer NetBSD to follow a strict
> interpretation of the relevant standards.  Broken applications can
> easily change from
> 
>       #define _XOPEN_SOURCE
> 
> to
> 
>       #define _XOPEN_SOURCE 600
> 
> (or adding "-D_NETBSD_SOURCE" to the compiler flags, or whatever).

We document it as such in sys/featuretest.h.

Joerg


Home | Main Index | Thread Index | Old Index