0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 05:49:50 +00:00
packages/net/zerotier/patches/0003-fix-compilation-for-arm_cortex-a7-neon.patch
Moritz Warning 660b10f0dc zerotier: update to 1.14.1
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2024-09-20 21:56:56 +08:00

21 lines
695 B
Diff

From 71ed5b791fb0f7bfe1f564726fdc979b71313fbe Mon Sep 17 00:00:00 2001
From: Moritz Warning <moritzwarning@web.de>
Date: Tue, 17 Sep 2024 15:38:01 +0200
Subject: [PATCH 3/5] fix compilation for arm_cortex a7 neon
---
node/Constants.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/node/Constants.hpp
+++ b/node/Constants.hpp
@@ -123,7 +123,7 @@
#include <immintrin.h>
#endif
-#if (defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(ZT_ARCH_ARM_HAS_NEON))
+#if (defined(__aarch64__) || defined(ZT_ARCH_ARM_HAS_NEON))
#if (defined(__APPLE__) && !defined(__LP64__)) || (defined(__ANDROID__) && defined(__arm__))
#ifdef ZT_ARCH_ARM_HAS_NEON
#undef ZT_ARCH_ARM_HAS_NEON