diff --git libsent/src/phmm/calc_dnn.c libsent/src/phmm/calc_dnn.c
index bfd741d0..c7a8a533 100644
--- libsent/src/phmm/calc_dnn.c
+++ libsent/src/phmm/calc_dnn.c
@@ -12,7 +12,8 @@
 #ifdef _WIN32
 #include <intrin.h>
 #else
-#ifndef __arm__
+#if defined(__arm__) || TARGET_OS_IPHONE
+#else
 #include <cpuid.h>
 #endif
 #endif /* _WIN32 */
diff --git libsent/src/phmm/calc_dnn.c libsent/src/phmm/calc_dnn.c
index d2b49208..b14fe0dd 100644
--- libsent/src/phmm/calc_dnn.c
+++ libsent/src/phmm/calc_dnn.c
@@ -12,7 +12,7 @@
 #ifdef _WIN32
 #include <intrin.h>
 #else
-#if defined(__arm__) || TARGET_OS_IPHONE
+#if defined(__arm__) || TARGET_OS_IPHONE || defined(__aarch64__)
 #else
 #include <cpuid.h>
 #endif

