Index: src/common/aarch64/cpu_detect.cpp
--- src/common/aarch64/cpu_detect.cpp.orig
+++ src/common/aarch64/cpu_detect.cpp
@@ -15,7 +15,7 @@
 #include <sys/sysctl.h>
 // clang-format on
 #elif !defined(_WIN32)
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
 #include <asm/hwcap.h>
 #endif // __FreeBSD__
 #include <sys/auxv.h>
@@ -91,7 +91,7 @@ static CPUCaps Detect() {
 #else
     caps.cpu_string = GetCPUString();
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
     u_long hwcaps = 0;
     elf_aux_info(AT_HWCAP, &hwcaps, sizeof(u_long));
 #else
