Ticket #38774: libstdc++_nanosleep.patch
File libstdc++_nanosleep.patch, 1.1 KB (added by howarth@…, 12 years ago) |
---|
-
libstdc++-v3/config/os/bsd/darwin/os_defines.h
old new 42 42 // Static initializer macro is buggy in darwin, see libstdc++/51906 43 43 #define _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC 44 44 45 // Configure checks for nanosleep fail on Darwin, but nanosleep and 46 // sched_yield are always available, so use them. 47 #define _GLIBCXX_USE_NANOSLEEP 1 48 #define _GLIBCXX_USE_SCHED_YIELD 1 49 45 50 #endif -
libstdc++-v3/acinclude.m4
old new 1132 1132 dnl --disable-libstdcxx-time 1133 1133 dnl disables the checks completely 1134 1134 dnl 1135 dnl N.B. Darwin provides nanosleep but doesn't support the whole POSIX 1136 dnl Timers option, so doesn't define _POSIX_TIMERS. Because the test 1137 dnl below fails Darwin unconditionally defines _GLIBCXX_USE_NANOSLEEP in 1138 dnl os_defines.h and also defines _GLIBCXX_USE_SCHED_YIELD. 1139 dnl 1135 1140 AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ 1136 1141 1137 1142 AC_MSG_CHECKING([for clock_gettime, nanosleep and sched_yield])