0003-fix-build-on-macOS-ARM.patch 797 B

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