Commit d91e23d766 for openssl.org
commit d91e23d7663db115676ebd0d7b789011b551e915
Author: Julian Zhu <jz531210@gmail.com>
Date: Thu Aug 6 15:07:35 2026 +0800
LoongArch: Include internal/cryptlib.h in loongarchcap.c
It declares OPENSSL_cpuid_setup(). Without it, a --strict-warnings
build fails with -Werror=missing-prototypes.
Fixes #32984
Signed-off-by: Julian Zhu <jz531210@gmail.com>
Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Merge-date: Fri Oct 2 08:19:33 2026
Merged-from: https://github.com/openssl/openssl/pull/32985
diff --git a/crypto/loongarchcap.c b/crypto/loongarchcap.c
index 2e92b54ecd..152f94fa35 100644
--- a/crypto/loongarchcap.c
+++ b/crypto/loongarchcap.c
@@ -7,6 +7,7 @@
* https://www.openssl.org/source/license.html
*/
#include <sys/auxv.h>
+#include "internal/cryptlib.h"
#include "arch/loongarch_arch.h"
unsigned int OPENSSL_loongarch_hwcap_P = 0;