summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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