[PATCH] D26504: [Support] Use HAVE_DLOPEN to guard dlopen(3) usage
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 07:44:38 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL288246: [Support] Use HAVE_DLOPEN to guard dlopen(3) usage (authored by labath).
Changed prior to commit:
https://reviews.llvm.org/D26504?vs=79572&id=79738#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26504
Files:
llvm/trunk/lib/Support/DynamicLibrary.cpp
Index: llvm/trunk/lib/Support/DynamicLibrary.cpp
===================================================================
--- llvm/trunk/lib/Support/DynamicLibrary.cpp
+++ llvm/trunk/lib/Support/DynamicLibrary.cpp
@@ -41,7 +41,7 @@
#else
-#if HAVE_DLFCN_H
+#if defined(HAVE_DLFCN_H) && defined(HAVE_DLOPEN)
#include <dlfcn.h>
using namespace llvm;
using namespace llvm::sys;
@@ -119,7 +119,7 @@
return i->second;
}
-#if HAVE_DLFCN_H
+#if defined(HAVE_DLFCN_H) && defined(HAVE_DLOPEN)
// Now search the libraries.
if (OpenedHandles) {
for (DenseSet<void *>::iterator I = OpenedHandles->begin(),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26504.79738.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/b9dfc4ab/attachment.bin>
More information about the llvm-commits
mailing list