[gccsdk] Patch to correctly set _XOPEN_SOURCE when _POSIX_C_SOURCE is defined

Cameron Cawley ccawley2011 at gmail.com
Wed Aug 7 06:53:02 PDT 2019


Hi

This patch ensures that _XOPEN_SOURCE is set correctly when _POSIX_C_SOURCE
is greater than or equal to 200112L. Previously, defining _POSIX_C_SOURCE
to 200112L would enable XPG6 functions, but not functions for earlier XPG
versions.

See also the discussion in https://github.com/nmoinvaz/minizip/pull/410

Regards
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riscos.info/pipermail/gcc/attachments/20190807/a0c47a32/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unixlib-features.diff
Type: application/x-patch
Size: 639 bytes
Desc: not available
URL: <http://www.riscos.info/pipermail/gcc/attachments/20190807/a0c47a32/attachment.bin>


More information about the gcc mailing list