diff options
Diffstat (limited to 'package/network/utils/ebtables/patches')
-rw-r--r-- | package/network/utils/ebtables/patches/100-musl_fix.patch | 4 | ||||
-rw-r--r-- | package/network/utils/ebtables/patches/200-fix-extension-init.patch | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/package/network/utils/ebtables/patches/100-musl_fix.patch b/package/network/utils/ebtables/patches/100-musl_fix.patch index 3fe5845897..9528fe4b19 100644 --- a/package/network/utils/ebtables/patches/100-musl_fix.patch +++ b/package/network/utils/ebtables/patches/100-musl_fix.patch @@ -6,5 +6,5 @@ #define EBTABLES_U_H +#define _NETINET_IF_ETHER_H #include <netinet/in.h> - #include <linux/netfilter_bridge/ebtables.h> - #include <linux/netfilter/x_tables.h> + #include <netinet/ether.h> + #include <ebtables.h> diff --git a/package/network/utils/ebtables/patches/200-fix-extension-init.patch b/package/network/utils/ebtables/patches/200-fix-extension-init.patch index 52ab175ec2..4b202ac57e 100644 --- a/package/network/utils/ebtables/patches/200-fix-extension-init.patch +++ b/package/network/utils/ebtables/patches/200-fix-extension-init.patch @@ -247,3 +247,14 @@ { ebt_register_table(&table); } +--- a/extensions/ebt_string.c ++++ b/extensions/ebt_string.c +@@ -310,7 +310,7 @@ static struct ebt_u_match string_match = + .extra_ops = opts, + }; + +-void _init(void) ++__attribute__((constructor)) static void extension_init(void) + { + ebt_register_match(&string_match); + } |