[Lldb-commits] [lldb] r252190 - Fix build on platforms that don't have dlfcn.h

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 5 11:22:06 PST 2015


Author: zturner
Date: Thu Nov  5 13:22:06 2015
New Revision: 252190

URL: http://llvm.org/viewvc/llvm-project?rev=252190&view=rev
Log:
Fix build on platforms that don't have dlfcn.h

Modified:
    lldb/trunk/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp

Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp?rev=252190&r1=252189&r2=252190&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp Thu Nov  5 13:22:06 2015
@@ -10,7 +10,10 @@
 #include "PlatformAppleSimulator.h"
 
 // C Includes
+#if defined(__APPLE__)
 #include <dlfcn.h>
+#endif
+
 // C++ Includes
 #include <mutex>
 #include <thread>




More information about the lldb-commits mailing list