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 doesn't find the function nanosleep() on darwin
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Oct 2012 22:27:08 +0000
- Subject: [Bug libstdc++/54847] --enable-libstdcxx-time=yes doesn't find the function nanosleep() 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 #45 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-10-08 22:27:08 UTC ---
I can confirm the existence of sched_yield() back to Libc-166 in 1997 on
darwin.
http://opensource.apple.com/source/Libc/Libc-166/pthreads.subproj/sched.h
The nanosleep() call appears at least by Libc-262.2.12 in 2003 on darwin...
http://opensource.apple.com/source/Libc/Libc-262.2.12/include/time.h
and probably goes back further but the archived Libc don't show the time.h
header before then.