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.
1 parent cf8941c commit 67111fdCopy full SHA for 67111fd
Python/remote_debug.h
@@ -100,7 +100,7 @@ typedef struct page_cache_entry {
100
// Define a platform-independent process handle structure
101
typedef struct {
102
pid_t pid;
103
-#if defined(__APPLE__)
+#if defined(__APPLE__) && TARGET_OS_OSX
104
mach_port_t task;
105
#elif defined(MS_WINDOWS)
106
HANDLE hProcess;
@@ -135,7 +135,7 @@ static mach_port_t pid_to_task(pid_t pid);
135
static int
136
_Py_RemoteDebug_InitProcHandle(proc_handle_t *handle, pid_t pid) {
137
handle->pid = pid;
138
139
handle->task = pid_to_task(handle->pid);
140
141
handle->hProcess = OpenProcess(
0 commit comments