Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-91048: Guard against TARGET_OS_OSX for compat with simulators in r…
…emote_debug.h
  • Loading branch information
pablogsal committed May 26, 2025
commit 67111fd156b477659150fc601281b348e6f37882
4 changes: 2 additions & 2 deletions Python/remote_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ typedef struct page_cache_entry {
// Define a platform-independent process handle structure
typedef struct {
pid_t pid;
#if defined(__APPLE__)
#if defined(__APPLE__) && TARGET_OS_OSX
mach_port_t task;
#elif defined(MS_WINDOWS)
HANDLE hProcess;
Expand Down Expand Up @@ -135,7 +135,7 @@ static mach_port_t pid_to_task(pid_t pid);
static int
_Py_RemoteDebug_InitProcHandle(proc_handle_t *handle, pid_t pid) {
handle->pid = pid;
#if defined(__APPLE__)
#if defined(__APPLE__) && TARGET_OS_OSX
handle->task = pid_to_task(handle->pid);
#elif defined(MS_WINDOWS)
handle->hProcess = OpenProcess(
Expand Down
Loading