libgcrypt: fix x86 builds

This commit is contained in:
Leonid Pliushch 2021-02-05 22:58:53 +00:00
parent e0075ab9ae
commit 7f4e2db883
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
diff -uNr libgcrypt-1.9.1/cipher/keccak.c libgcrypt-1.9.1.mod/cipher/keccak.c
--- libgcrypt-1.9.1/cipher/keccak.c 2021-01-28 12:53:52.000000000 +0000
+++ libgcrypt-1.9.1.mod/cipher/keccak.c 2021-02-05 22:56:17.199752830 +0000
@@ -903,10 +903,12 @@
else if (features & HWF_INTEL_BMI2)
ctx->ops = &keccak_bmi2_32bi_ops;
#endif
+#ifdef HAVE_CPU_ARCH_X86
#ifdef USE_64BIT_SHLD
else if (features & HWF_INTEL_FAST_SHLD)
ctx->ops = &keccak_shld_64_ops;
#endif
+#endif
/* Set input block size, in Keccak terms this is called 'rate'. */