[compiler-rt] r291454 - [compiler-rt] Include <dlfcn.h> unconditionally

Kuba Mracek via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 09:39:32 PST 2017


Author: kuba.brecka
Date: Mon Jan  9 11:39:31 2017
New Revision: 291454

URL: http://llvm.org/viewvc/llvm-project?rev=291454&view=rev
Log:
[compiler-rt] Include <dlfcn.h> unconditionally

This fixes a build issue with musl-libc.

Differential Revision: https://reviews.llvm.org/D21656


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=291454&r1=291453&r2=291454&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Mon Jan  9 11:39:31 2017
@@ -26,10 +26,7 @@
 #include "sanitizer_procmaps.h"
 #include "sanitizer_stacktrace.h"
 
-#if SANITIZER_ANDROID || SANITIZER_FREEBSD
 #include <dlfcn.h>  // for dlsym()
-#endif
-
 #include <link.h>
 #include <pthread.h>
 #include <signal.h>




More information about the llvm-commits mailing list