--- util/crc32c_arm64.cc.orig	2025-04-09 18:08:48 UTC
+++ util/crc32c_arm64.cc
@@ -10,7 +10,7 @@
 #if defined(__linux__)
 #include <asm/hwcap.h>
 #endif
-#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT)
+#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT) || defined(__FreeBSD__)
 #include <sys/auxv.h>
 #endif
 #ifndef HWCAP_CRC32
