From f6a55938d8b3f371fabf88a7e00aeea22b08b0e3 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 10 2019 03:43:17 +0000 Subject: mmglue: pthread_arch: support of modern musl versions: defined MC_PC. --- diff --git a/arch/nt32/pthread_arch.h b/arch/nt32/pthread_arch.h index d5f2553..f779af4 100644 --- a/arch/nt32/pthread_arch.h +++ b/arch/nt32/pthread_arch.h @@ -2,6 +2,7 @@ #define TP_ADJ(p) (p) #define CANCEL_REG_IP 16 +#define MC_PC uc_eip extern uintptr_t __teb_sys_idx; extern uintptr_t __teb_libc_idx; diff --git a/arch/nt64/pthread_arch.h b/arch/nt64/pthread_arch.h index 5c15b69..05188f3 100644 --- a/arch/nt64/pthread_arch.h +++ b/arch/nt64/pthread_arch.h @@ -2,6 +2,7 @@ #define TP_ADJ(p) (p) #define CANCEL_REG_IP 0x1F +#define MC_PC uc_rip extern uintptr_t __teb_sys_idx; extern uintptr_t __teb_libc_idx;