diff options
| author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-04-09 13:37:19 +0000 |
|---|---|---|
| committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-04-09 13:37:19 +0000 |
| commit | 82185a20886c570224588bbb956a8de7d82f4030 (patch) | |
| tree | 95fc193dc491ecf89508b65aaa36e91062720c56 /compiler-rt | |
| parent | f9fc215f821c9f60c6484e738774afae8f3bb8a3 (diff) | |
| download | bcm5719-llvm-82185a20886c570224588bbb956a8de7d82f4030.tar.gz bcm5719-llvm-82185a20886c570224588bbb956a8de7d82f4030.zip | |
Declare _DYNAMIC and dl_phdr_info in asan_linux.cc on FreeBSD
llvm-svn: 205852
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/asan_linux.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_linux.cc b/compiler-rt/lib/asan/asan_linux.cc index 777cb43bfa2..fce9d1cd56a 100644 --- a/compiler-rt/lib/asan/asan_linux.cc +++ b/compiler-rt/lib/asan/asan_linux.cc @@ -33,7 +33,11 @@ #include <unistd.h> #include <unwind.h> -#if SANITIZER_ANDROID +#if SANITIZER_FREEBSD +#include <sys/link_elf.h> +#endif + +#if SANITIZER_ANDROID || SANITIZER_FREEBSD #include <ucontext.h> extern "C" void* _DYNAMIC; #else |

