summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--freebsd/crypto/openssl/crypto/arm_arch.h2
-rw-r--r--freebsd/crypto/openssl/crypto/armcap.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/crypto/arm_arch.h b/freebsd/crypto/openssl/crypto/arm_arch.h
index 9d6e5888..b84bfc46 100644
--- a/freebsd/crypto/openssl/crypto/arm_arch.h
+++ b/freebsd/crypto/openssl/crypto/arm_arch.h
@@ -1,6 +1,7 @@
#ifndef __ARM_ARCH_H__
# define __ARM_ARCH_H__
+#if defined(__rtems__) && defined(__arm__)
# if !defined(__ARM_ARCH__)
# if defined(__CC_ARM)
# define __ARM_ARCH__ __TARGET_ARCH_ARM
@@ -75,4 +76,5 @@ extern unsigned int OPENSSL_armcap_P;
# define ARMV8_SHA256 (1<<4)
# define ARMV8_PMULL (1<<5)
+#endif /* __rtems__ */
#endif
diff --git a/freebsd/crypto/openssl/crypto/armcap.c b/freebsd/crypto/openssl/crypto/armcap.c
index 05f37497..824d5eea 100644
--- a/freebsd/crypto/openssl/crypto/armcap.c
+++ b/freebsd/crypto/openssl/crypto/armcap.c
@@ -9,6 +9,7 @@
#include "arm_arch.h"
+#if defined(__rtems__) && defined(__arm__)
unsigned int OPENSSL_armcap_P = 0;
#if __ARM_MAX_ARCH__<7
@@ -164,3 +165,4 @@ void OPENSSL_cpuid_setup(void)
sigprocmask(SIG_SETMASK, &oset, NULL);
}
#endif
+#endif /* __rtems__ */