From 466e64ac9065183878ead1ebb8da013397ac8ad4 Mon Sep 17 00:00:00 2001 From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com> Date: Sun, 17 Jul 2022 23:05:57 +0800 Subject: [PATCH] fullconenat: fix _init repeat definition After iptables was updated to 1.8.8, a compilation error occurred during fullconenat compilation due to _init redefinition. --- .../001-fix-init-Repeat-definition.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/network/utils/fullconenat/patches/001-fix-init-Repeat-definition.patch diff --git a/package/network/utils/fullconenat/patches/001-fix-init-Repeat-definition.patch b/package/network/utils/fullconenat/patches/001-fix-init-Repeat-definition.patch new file mode 100644 index 0000000000..67c9332c84 --- /dev/null +++ b/package/network/utils/fullconenat/patches/001-fix-init-Repeat-definition.patch @@ -0,0 +1,20 @@ +--- a/libip6t_FULLCONENAT.c ++++ b/libip6t_FULLCONENAT.c +@@ -214,6 +214,7 @@ static struct xtables_target fullconenat_tg_reg = { + .x6_options = FULLCONENAT_opts, + }; + ++#define _init __attribute__((constructor)) _INIT + void _init(void) + { + xtables_register_target(&fullconenat_tg_reg); +--- a/libipt_FULLCONENAT.c ++++ b/libipt_FULLCONENAT.c +@@ -235,6 +235,7 @@ static struct xtables_target fullconenat_tg_reg = { + .x6_options = FULLCONENAT_opts, + }; + ++#define _init __attribute__((constructor)) _INIT + void _init(void) + { + xtables_register_target(&fullconenat_tg_reg);