From: Pablo Galindo Salgado Date: Fri, 25 Apr 2025 16:38:48 +0000 (+0100) Subject: gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled (#132959) X-Git-Tag: v3.14.0b1~283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=622176513ef7dc41faaa8403b09b799bc5785aee;p=thirdparty%2FPython%2Fcpython.git gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled (#132959) --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1a7b01bf97f8..e650444108e8 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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();