summaryrefslogtreecommitdiffstats
path: root/libcxxabi/include/cxxabi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/include/cxxabi.h')
-rw-r--r--libcxxabi/include/cxxabi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxxabi/include/cxxabi.h b/libcxxabi/include/cxxabi.h
index 46d673008b7..e5c9b66688f 100644
--- a/libcxxabi/include/cxxabi.h
+++ b/libcxxabi/include/cxxabi.h
@@ -178,6 +178,12 @@ extern void __cxa_decrement_exception_refcount(void* primary_exception) throw();
// Apple addition to support std::uncaught_exception()
extern bool __cxa_uncaught_exception() throw();
+#ifdef __linux__
+// Linux TLS support. Not yet an official part of the Itanium ABI.
+// https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables
+extern int __cxa_thread_atexit(void (*)(void *), void *, void *) throw();
+#endif
+
} // extern "C"
} // namespace __cxxabiv1
OpenPOWER on IntegriCloud