[PATCH] stdio.h: Use __POSIX_VISIBLE etc. guards for POSIX 1003.1:2001 functions
Corinna Vinschen
vinschen@redhat.com
Mon Feb 8 09:41:00 GMT 2016
On Feb 4 17:07, Jon Turney wrote:
> Current mesa expects stdio.h to prototype fileno() when compiling with gcc
> -std=c99 -D_XOPEN_SOURCE
>
> Fix the 'POSIX 1003.1:2001' block in stdio.h to prototype functions if not
> __STRICT_ANSI__, or _BSD_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined
> appropriately
>
> As far as I can tell, despite being in this block, setbuffer() and setlinebuf()
> are BSDisms which aren't in POSIX 1003.1:2001
Patch applied.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160208/084b21f6/attachment.sig>
More information about the Newlib
mailing list