Skip to content

Commit 6221765

Browse files
authored
gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled (#132959)
1 parent ac5424d commit 6221765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sysmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ static PyObject *
24402440
sys_is_remote_debug_enabled_impl(PyObject *module)
24412441
/*[clinic end generated code: output=7ca3d38bdd5935eb input=7335c4a2fe8cf4f3]*/
24422442
{
2443-
#ifndef Py_REMOTE_DEBUG
2443+
#if !defined(Py_REMOTE_DEBUG) || !defined(Py_SUPPORTS_REMOTE_DEBUG)
24442444
Py_RETURN_FALSE;
24452445
#else
24462446
const PyConfig *config = _Py_GetConfig();

0 commit comments

Comments
 (0)