NON_POSIX_SOURCE

Keith Wansbrough Keith.Wansbrough@cl.cam.ac.uk
Fri, 10 Aug 2001 14:00:38 +0100


> Folks,
> 
> Julian & I had discussed the NON_POSIX_SOURCE situation yesterday and
> came to the conclusion that the current situation is unworkable.
> 
> Ok, currently what happens is that in Stg.h we #define _POSIX_C_SOURCE,
> which means that all RTS sources and via-C compilations are compiled
> with this symbol, which on most systems causes the header files to only
> bring into scope those features defined by POSIX.  So far so good, this
> helps us write portable software by getting the compiler to complain
> when we use non-POSIX features.

Could you preserve this useful feature by occasionally doing a compile
with -Onot -D_POSIX_C_SOURCE, perhaps as part of the release
checklist?

--KW 8-)