This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/54847] --enable-libstdcxx-time=yes non-functional on darwin
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Oct 2012 10:59:46 +0000
- Subject: [Bug libstdc++/54847] --enable-libstdcxx-time=yes non-functional on darwin
- Auto-submitted: auto-generated
- References: <bug-54847-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54847
--- Comment #25 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-08 10:59:46 UTC ---
N.B. prior to POSIX 2008 nanosleep was part of the Timers option, if OS X
supports that it should define _POSIX_TIMERS to 0, -1 or 200112L to indicate
it's supported. POSIX 2008 moves the Timers functionality to the Base spec,
and requires that _POSIX_TIMERS is defined to 200809L. In eiher case, a POSIX
system supporting nanosleep should define _POSIX_TIMERS.
The configure checks are based on well-documented, publicly-available
standards, please try to understand them instead of proposing patches based on
the misunderstanding that adding "struct" makes any difference to anything.