summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/API/SBBreakpointLocation.cpp5
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp4
2 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp
index 45c153b62ea..d14865902b0 100644
--- a/lldb/source/API/SBBreakpointLocation.cpp
+++ b/lldb/source/API/SBBreakpointLocation.cpp
@@ -7,11 +7,6 @@
//
//===----------------------------------------------------------------------===//
-// In order to guarantee correct working with Python, Python.h *MUST* be
-// the *FIRST* header file included:
-
-#include <Python.h>
-
#include "lldb/API/SBBreakpointLocation.h"
#include "lldb/API/SBDefines.h"
#include "lldb/API/SBDebugger.h"
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index 906cb742350..ef472c385a0 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -10,7 +10,11 @@
// In order to guarantee correct working with Python, Python.h *MUST* be
// the *FIRST* header file included:
+#if defined (__APPLE__)
+#include <Python/Python.h>
+#else
#include <Python.h>
+#endif
#include "lldb/Interpreter/ScriptInterpreterPython.h"
OpenPOWER on IntegriCloud