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:
parent
0e8b3b4372
commit
0bfc15ea4e
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue