summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfangming.fang <fangming.fang@arm.com>2021-12-29 05:09:07 +0000
committerTomas Mraz <tomas@openssl.org>2022-11-09 15:30:08 +0100
commitf53caf04eba061193055392934ad2e8c4346b0ec (patch)
tree3be9a7e90af8b435680b899d46222f8186dcd560 /test
parentea578b6553b178e1ae2448eab175fce81da07987 (diff)
Fix compile error when building with no-asm
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17376) (cherry picked from commit a8251a32a0dc449fc39f44a1768e091fcc077227)
Diffstat (limited to 'test')
-rw-r--r--test/rdcpu_sanitytest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rdcpu_sanitytest.c b/test/rdcpu_sanitytest.c
index df1858ae9b..08af5b0895 100644
--- a/test/rdcpu_sanitytest.c
+++ b/test/rdcpu_sanitytest.c
@@ -23,7 +23,7 @@ size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len);
# define IS_X_86 0
#endif
-#if defined(__aarch64__)
+#if defined(__aarch64__) && defined(OPENSSL_CPUID_OBJ)
# define IS_AARCH_64 1
# include "arm_arch.h"