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: "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: Sun, 07 Oct 2012 19:43:25 +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 #10 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-10-07 19:43:25 UTC ---
(In reply to comment #9)
>
> I can certainly participate. I just need to make sure that I don't read any
> code snippets that are GPL3 licensed.
>
Well it is absurd to read bugzilla and not expect to run across GPLv3 code
fragments. In any case,
this minor change the configure test compiles and runs fine on
x86_64-apple-darwin11...
#include <unistd.h>
#include <time.h>
int
main ()
{
#if _POSIX_TIMERS > 0
timespec tp;
#else
struct timespec tp;
#endif
nanosleep(&tp, 0);
;
return 0;
}
ISo the question is whether the header fragment needs any adjustment once the
configure passes the check for nanosleep() support. I'll test locally.
Paolo, are there any specific libstdc++-v3 test cases that I should look at
once libstc++-v3 is using nanosleep() to check for proper function?