Ticket #36364: enable_libstdcxx_time_yes.diff

File enable_libstdcxx_time_yes.diff, 516 bytes (added by howarth@…, 12 years ago)

backport of fix to default to --enable-libstdcxx-time=yes

  • libstdc++-v3/config/os/bsd/darwin/os_defines.h

    old new  
    4242// Static initializer macro is buggy in darwin, see libstdc++/51906
    4343#define _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC
    4444
     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
    4550#endif