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.
This commit is contained in:
Sergey Fedorov 2026-02-05 23:02:05 +08:00 committed by GitHub
parent 0e8b3b4372
commit 0bfc15ea4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 <AvailabilityMacros.h>
#include <sys/ptrace.h>
#if !__POWERPC__
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
#include <sys/proc_info.h>
#include <libproc.h>
#define HAS_LIBPROC