Ticket #11005: 0001-Force-libstdc-to-use-TLS.patch

File 0001-Force-libstdc-to-use-TLS.patch, 1021 bytes (added by jessicah, 6 years ago)
  • gcc/libstdc++-v3/config/os/haiku/os_defines.h

    From b6be30de420bce31201cac6f8a9d998ae0a6ab7a Mon Sep 17 00:00:00 2001
    From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
    Date: Wed, 9 Jul 2014 12:53:21 +1200
    Subject: [PATCH] Force libstdc++ to use TLS.
    
    ---
     gcc/libstdc++-v3/config/os/haiku/os_defines.h | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/gcc/libstdc++-v3/config/os/haiku/os_defines.h b/gcc/libstdc++-v3/config/os/haiku/os_defines.h
    index 0793756..8b4741f 100644
    a b  
    3232
    3333// System-specific #define, typedefs, corrections, etc, go here.  This
    3434// file will come before all others.
     35#define _GLIBCXX_HAVE_TLS 1
    3536
    3637// On Haiku, nanosleep and sched_yield are always available except for the
    37 // kernel and the bootloader, so use them. 
     38// kernel and the bootloader, so use them.
    3839#if !defined(_KERNEL_MODE) && !defined(_LOADER_MODE)
    3940    #define _GLIBCXX_USE_NANOSLEEP 1
    4041    #define _GLIBCXX_USE_SCHED_YIELD 1