summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-05 19:22:06 +0000
committerZachary Turner <zturner@google.com>2015-11-05 19:22:06 +0000
commit185a7aaddacff4b7c846b5946c244d6fabdefa32 (patch)
tree54720e5588d690ca75a5688cf7dc820ae04ee746 /lldb
parent71d468be66cbdff20426508a2c117c0af833d54a (diff)
downloadbcm5719-llvm-185a7aaddacff4b7c846b5946c244d6fabdefa32.tar.gz
bcm5719-llvm-185a7aaddacff4b7c846b5946c244d6fabdefa32.zip
Fix build on platforms that don't have dlfcn.h
llvm-svn: 252190
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
index 354d5c88ec7..eea2844d564 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
@@ -10,7 +10,10 @@
#include "PlatformAppleSimulator.h"
// C Includes
+#if defined(__APPLE__)
#include <dlfcn.h>
+#endif
+
// C++ Includes
#include <mutex>
#include <thread>
OpenPOWER on IntegriCloud