From 313640cc9ff65fd479a45271ee3a7929112b02f0 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 1 May 2023 19:28:41 +0200 Subject: [PATCH] Fix ndpi --- ndpi-netfilter2/patches/outline-atomics.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ndpi-netfilter2/patches/outline-atomics.patch b/ndpi-netfilter2/patches/outline-atomics.patch index e8f93d0c8..a0935ecea 100644 --- a/ndpi-netfilter2/patches/outline-atomics.patch +++ b/ndpi-netfilter2/patches/outline-atomics.patch @@ -1,14 +1,16 @@ --- a/ndpi-netfilter/src/Makefile 2022-08-03 21:27:52.321058402 +0200 +++ b/ndpi-netfilter/src/Makefile 2022-08-03 21:28:27.572452447 +0200 -@@ -5,6 +5,12 @@ +@@ -5,6 +5,14 @@ ccflags-y += -I${src}/${NDPI_SRC}/include -I${src}/${NDPI_SRC}/lib -I${src}/../libre -I${src}/${NDPI_SRC}/lib/third_party/include ccflags-y += -DHAVE_CONFIG_H -DNDPI_LIB_COMPILATION -DOPENDPI_NETFILTER_MODULE -DNDPI_DETECTION_SUPPORT_IPV6 -g ccflags-y += -Wno-declaration-after-statement ++ifneq ($(KERNEL_RELEASE),5.4) +ifeq ($(ARCH),arm64) + ccflags-y += -mno-outline-atomics +endif +ifeq ($(ARCH),aarch64) + ccflags-y += -mno-outline-atomics ++endif +endif #ccflags-y += -Wshadow-local # Needed for pahole