Checking patch mach/setup-thread.c... error: while searching for: kern_return_t error; struct machine_thread_state ts; mach_msg_type_number_t tssize = MACHINE_THREAD_STATE_COUNT; vm_address_t stack; vm_size_t size; int anywhere; error: patch failed: mach/setup-thread.c:33 error: while searching for: *stack_size = size; #ifdef STACK_GROWTH_DOWN if (stack_base) *stack_base = stack + __vm_page_size; #elif defined (STACK_GROWTH_UP) if (stack_base) *stack_base = stack; stack += size; #else #error stack direction unknown #endif if (is_call) MACHINE_THREAD_STATE_SETUP_CALL (&ts, *stack_base, size, pc); else { MACHINE_THREAD_STATE_SET_PC (&ts, pc); MACHINE_THREAD_STATE_SET_SP (&ts, *stack_base, size); } /* Create the red zone. */ error: patch failed: mach/setup-thread.c:51 Applying patch mach/setup-thread.c with 2 rejects... Rejected hunk #1. Rejected hunk #2.