[compiler-rt] r216885 - [libsanitizer] Fix the Android build.
Alexander Potapenko
glider at google.com
Mon Sep 1 08:38:16 PDT 2014
Author: glider
Date: Mon Sep 1 10:38:16 2014
New Revision: 216885
URL: http://llvm.org/viewvc/llvm-project?rev=216885&view=rev
Log:
[libsanitizer] Fix the Android build.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=216885&r1=216884&r2=216885&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Mon Sep 1 10:38:16 2014
@@ -25,6 +25,10 @@
#include "sanitizer_atomic.h"
#include "sanitizer_symbolizer.h"
+#if SANITIZER_ANDROID
+#include <dlfcn.h> // for dlsym()
+#endif
+
#include <pthread.h>
#include <signal.h>
#include <sys/resource.h>
More information about the llvm-commits
mailing list