[Lldb-commits] [lldb] 02aa032 - [lldb] Fix pid_t redefinition on Windows in ScriptInterpreterPythonInterfaces (#181492)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Feb 14 09:24:37 PST 2026
Author: rchamala
Date: 2026-02-14T09:24:28-08:00
New Revision: 02aa032f6ff63b9f56ff171d4984e537006b6e84
URL: https://github.com/llvm/llvm-project/commit/02aa032f6ff63b9f56ff171d4984e537006b6e84
DIFF: https://github.com/llvm/llvm-project/commit/02aa032f6ff63b9f56ff171d4984e537006b6e84.diff
LOG: [lldb] Fix pid_t redefinition on Windows in ScriptInterpreterPythonInterfaces (#181492)
## Summary
- Move `#include "lldb/Core/PluginManager.h"` after `#include
"ScriptInterpreterPythonInterfaces.h"` so Python's `pyconfig.h` defines
`pid_t` before `PosixApi.h` gets included. This fixes the `C2371:
'pid_t': redefinition; different basic types` error on all Windows
builders.
Fixes CI failures from #181334 / #181488.
Co-authored-by: Rahul Reddy Chamala <rachamal at meta.com>
Added:
Modified:
lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptInterpreterPythonInterfaces.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptInterpreterPythonInterfaces.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptInterpreterPythonInterfaces.cpp
index 96a81c9153736..c460b16ba8405 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptInterpreterPythonInterfaces.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptInterpreterPythonInterfaces.cpp
@@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
-#include "lldb/Core/PluginManager.h"
#include "lldb/Host/Config.h"
#include "lldb/lldb-enumerations.h"
@@ -14,6 +13,8 @@
#include "ScriptInterpreterPythonInterfaces.h"
+#include "lldb/Core/PluginManager.h"
+
using namespace lldb;
using namespace lldb_private;
More information about the lldb-commits
mailing list