Import patches for old macOS from MacPorts

This commit is contained in:
Nobuyoshi Nakada 2024-09-26 10:32:30 +09:00
parent 80e483afac
commit 8350b48cfa
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2024-09-26 02:02:15 +00:00
5 changed files with 32 additions and 6 deletions

View file

@ -803,7 +803,8 @@ check_stack_overflow(int sig, const uintptr_t addr, const ucontext_t *ctx)
const greg_t bp = mctx->gregs[REG_EBP];
# endif
# elif defined __APPLE__
# if __DARWIN_UNIX03
# include <AvailabilityMacros.h>
# if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
# define MCTX_SS_REG(reg) __ss.__##reg
# else
# define MCTX_SS_REG(reg) ss.reg