summaryrefslogtreecommitdiff
path: root/src/mi/Gset_caching_policy.c
diff options
context:
space:
mode:
authorBert Wesarg <bert.wesarg@tu-dresden.de>2017-03-27 10:24:26 +0200
committerDave Watson <davejwatson@fb.com>2017-08-15 10:34:28 -0700
commit57257060c9d56cf9d1a499d71e3ca1eb51cd279d (patch)
treef1866aeb297333db23283a1b50c40e52f5ab7b22 /src/mi/Gset_caching_policy.c
parentac1427d87fd9254366d9e262c5b9f35676f3cc10 (diff)
downloadlibunwind-57257060c9d56cf9d1a499d71e3ca1eb51cd279d.tar.gz
Bring back support for UNW_CACHE_PER_THREAD.
Needs to be build with --enable-per-thread-cache. Default caching policy is also UNW_CACHE_PER_THREAD than.
Diffstat (limited to 'src/mi/Gset_caching_policy.c')
-rw-r--r--src/mi/Gset_caching_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mi/Gset_caching_policy.c b/src/mi/Gset_caching_policy.c
index 45ba1001..9df9eb82 100644
--- a/src/mi/Gset_caching_policy.c
+++ b/src/mi/Gset_caching_policy.c
@@ -31,7 +31,7 @@ unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy)
if (!tdep_init_done)
tdep_init ();
-#ifndef HAVE___THREAD
+#if !(defined(HAVE___THREAD) && HAVE___THREAD)
if (policy == UNW_CACHE_PER_THREAD)
policy = UNW_CACHE_GLOBAL;
#endif