Skip to content

Commit 5fae57e

Browse files
committed
fixup! Fix test
1 parent 1766992 commit 5fae57e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_remote_debugging_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ process_frame_chain(
25032503

25042504
static int
25052505
get_thread_status(RemoteUnwinderObject *unwinder, uint64_t tid, uint64_t pthread_id) {
2506-
#ifdef __APPLE__
2506+
#if defined(__APPLE__) && TARGET_OS_OSX
25072507
if (unwinder->thread_id_offset == 0) {
25082508
uint64_t *tids = (uint64_t *)PyMem_Malloc(MAX_NATIVE_THREADS * sizeof(uint64_t));
25092509
if (!tids) {
@@ -2886,7 +2886,7 @@ _remote_debugging_RemoteUnwinder___init___impl(RemoteUnwinderObject *self,
28862886
}
28872887
#endif
28882888

2889-
#if defined(__APPLE__)
2889+
#if defined(__APPLE__)
28902890
self->thread_id_offset = 0;
28912891
#endif
28922892

0 commit comments

Comments
 (0)