Index: crypto/openssl/crypto/armcap.c =================================================================== --- crypto/openssl/crypto/armcap.c +++ crypto/openssl/crypto/armcap.c @@ -107,8 +107,12 @@ * AArch64 used AT_HWCAP. */ # if defined(__arm__) || defined (__arm) -# define HWCAP 16 +# if defined(__FreeBSD__) +# define HWCAP AT_HWCAP +# else +# define HWCAP 16 /* AT_HWCAP */ +# endif # define HWCAP_NEON (1 << 12) # define HWCAP_CE 26 @@ -118,8 +122,12 @@ # define HWCAP_CE_SHA1 (1 << 2) # define HWCAP_CE_SHA256 (1 << 3) # elif defined(__aarch64__) -# define HWCAP 16 +# if defined(__FreeBSD__) +# define HWCAP AT_HWCAP +# else +# define HWCAP 16 /* AT_HWCAP */ +# endif # define HWCAP_NEON (1 << 1) # define HWCAP_CE HWCAP