coova-chilli: fix libxt-coova not loading properly from iptables ( openwrt/packages#23092 )

Signed-off-by: Pierre Parent <m@pierre-parent.fr>
This commit is contained in:
Pierre Parent 2024-02-14 11:51:59 +01:00 committed by Rosen Penev
parent 0bb9240f6b
commit 61ba390b65
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=coova-chilli
PKG_VERSION:=1.6
PKG_RELEASE:=10
PKG_RELEASE:=11
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)?

View File

@ -26,7 +26,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
};
-void _init(void)
+void __attribute__ ((constructor)) xtables_init(void)
+void __attribute__ ((constructor)) libxt_coova_init(void)
{
xtables_register_match(&coova_mt_reg);
xtables_register_match(&coova_mt6_reg);