1From 43dfc3e3a66b8e4584eb46219b129197a2428181 Mon Sep 17 00:00:00 2001 2From: Michael Cho <cho-m@tuta.io> 3Date: Thu, 10 Mar 2022 22:46:29 -0800 4Subject: [PATCH] fix build on macOS ARM 5 6[alexander.lukichev@gmail.com: backport from upstream] 7Signed-off-by: Alexander Lukichev <alexander.lukichev@gmail.com> 8--- 9 openpgm/pgm/cpu.c | 2 +- 10 1 file changed, 1 insertion(+), 1 deletion(-) 11 12diff --git a/openpgm/pgm/cpu.c b/openpgm/pgm/cpu.c 13index cbcc988..f5da471 100644 14--- a/openpgm/pgm/cpu.c 15+++ b/openpgm/pgm/cpu.c 16@@ -33,6 +33,7 @@ 17 //#define CPU_DEBUG 18 19 20+#if defined(__i386__) || defined(__x86_64__) 21 #ifndef _MSC_VER 22 static 23 void 24@@ -59,7 +60,6 @@ _xgetbv(uint32_t xcr) { 25 #endif 26 27 28-#if defined(__i386__) || defined(__x86_64__) 29 PGM_GNUC_INTERNAL 30 void 31 pgm_cpuid (pgm_cpu_t* cpu) 32-- 332.37.2 34 35