diff options
author | Kamil Rytarowski <n54@gmx.com> | 2019-12-25 04:05:10 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2019-12-25 04:09:50 +0100 |
commit | 52b5fe5f45b1908e140e05a4eceaaac7002be768 (patch) | |
tree | efd6761a0bca7ab384e64e7835307530182bd6d0 | |
parent | 5732f56bbd28be6cab976e1df0d87ac5ffae7fcd (diff) | |
download | bcm5719-llvm-52b5fe5f45b1908e140e05a4eceaaac7002be768.tar.gz bcm5719-llvm-52b5fe5f45b1908e140e05a4eceaaac7002be768.zip |
[compiler-rt] [netbsd] Define _RTLD_SOURCE to fix build
The TLS base (LWP private pointer) functions are namespaced and
hidden i.e. inside the _RTLD_SOURCE namespace.
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp index cd503718205..56d4b71849c 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp @@ -28,6 +28,10 @@ #include "sanitizer_placement_new.h" #include "sanitizer_procmaps.h" +#if SANITIZER_NETBSD +#define _RTLD_SOURCE // Fast LWP private pointer getters in ThreadSelfTlsTcb(). +#endif + #include <dlfcn.h> // for dlsym() #include <link.h> #include <pthread.h> |