From 0bfc15ea4e5b519e7773610ae0434e211b51e6f2 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 5 Feb 2026 23:02:05 +0800 Subject: [PATCH] Fix condition for libproc in xnu_debug.h (#5871) libproc exists since 10.5, it is supported for powerpc in 10.5-10.6. xnu_threads.c uses PROC_PIDTHREADINFO which needs libproc header. This fixes the build on 10.6 for ppc. --- librz/debug/p/native/xnu/xnu_debug.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librz/debug/p/native/xnu/xnu_debug.h b/librz/debug/p/native/xnu/xnu_debug.h index d5a3a8a008..545a179e2b 100644 --- a/librz/debug/p/native/xnu/xnu_debug.h +++ b/librz/debug/p/native/xnu/xnu_debug.h @@ -42,8 +42,9 @@ #define PT_FIRSTMACH 32 /* for machine-specific requests */ int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data); #else +#include #include -#if !__POWERPC__ +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 #include #include #define HAS_LIBPROC