We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32221d9 + 7b8dea2 commit cfdcb7eCopy full SHA for cfdcb7e
lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
@@ -60,6 +60,12 @@ static llvm::Expected<bool> *g_fcxx_modules_workaround [[maybe_unused]];
60
// with a version of Python we don't support.
61
static_assert(PY_VERSION_HEX >= LLDB_MINIMUM_PYTHON_VERSION,
62
"LLDB requires at least Python 3.8");
63
+
64
+// PyMemoryView_FromMemory is part of stable ABI but the flag constants are not.
65
+// See https://github.com/python/cpython/issues/98680
66
+#ifndef PyBUF_READ
67
+#define PyBUF_READ 0x100
68
+#endif
69
#endif
70
71
#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_LLDB_PYTHON_H
0 commit comments