Cherry-pick LLVM upstream patch to fix build of compiler-rt

commit 52b5fe5f45b1908e140e05a4eceaaac7002be768
Author: Kamil Rytarowski <n54@gmx.com>
Date:   Wed Dec 25 04:05:10 2019 +0100

    [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.
This commit is contained in:
kamil 2019-12-27 00:35:05 +00:00
parent 4d3a90668a
commit a047abdf83
1 changed files with 4 additions and 0 deletions

View File

@ -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>