On Sat, Apr 07, 2007 at 06:04:01PM +0200, Pawel Jakub Dawidek wrote:
> Ok, I removed SEEK_DATA/SEEK_HOLE from stdio.h and hidden them in
> sys/unistd.h under:
> 
> #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
> [...]
> #endif
> 
> This is consistent which what Solaris has.

It is not enough. Currently you need !_C99_SOURCE !_ANSI_SOURCE 
!_POSIX_C_SOURCE too (see the end of /sys/sys/cdefs.h)

BTW, we design our *_VISIBLE framework right for the reason to _not_ 
mention all possible *_SOURCE each time but mention one *_VISIBLE 
tag instead, so please follow the rules how rest of our includes are made.

-- 
http://ache.pp.ru/

Attachment: pgppXZjh4kNtz.pgp
Description: PGP signature

Reply via email to