]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled (#132959)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Fri, 25 Apr 2025 16:38:48 +0000 (17:38 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 16:38:48 +0000 (16:38 +0000)
Python/sysmodule.c

index 1a7b01bf97f8f8dbbec0aaaff9c7bc0ba3263864..e650444108e8f77af26445b80b290f8029fd8ef4 100644 (file)
@@ -2440,7 +2440,7 @@ static PyObject *
 sys_is_remote_debug_enabled_impl(PyObject *module)
 /*[clinic end generated code: output=7ca3d38bdd5935eb input=7335c4a2fe8cf4f3]*/
 {
-#ifndef Py_REMOTE_DEBUG
+#if !defined(Py_REMOTE_DEBUG) || !defined(Py_SUPPORTS_REMOTE_DEBUG)
     Py_RETURN_FALSE;
 #else
     const PyConfig *config = _Py_GetConfig();