diff --git a/maestro/i_maestro_numa.h b/maestro/i_maestro_numa.h
index da1f7702ac80e5ba7a0cf6a24986dcd9694ad7dc..2b844848c7302b7e989cf7fbde83b8a9c4133bee 100644
--- a/maestro/i_maestro_numa.h
+++ b/maestro/i_maestro_numa.h
@@ -50,7 +50,7 @@
 #include <numaif.h>
 #endif
 
-#ifdef __APPLE__
+#ifdef __APPLE__ && (!defined(__arm64__))
 #include <cpuid.h>
 #endif
 
@@ -106,7 +106,7 @@ int
 mstro_numa_get_cpu(void) {
   #if defined(__linux) || defined(__linux__)
   return sched_getcpu();
-  #elif __APPLE__
+  #elif __APPLE__ && (!defined(__arm64__))
   #define CPUID(INFO, LEAF, SUBLEAF) __cpuid_count(LEAF, SUBLEAF, INFO[0], INFO[1], INFO[2], INFO[3])
       uint32_t CPUInfo[4];                           
       CPUID(CPUInfo, 1, 0);