]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fixes compile error of connlimit where NO_SHARED_LIBS=1 is specified
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Fri, 13 Jul 2007 15:07:10 +0000 (15:07 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Fri, 13 Jul 2007 15:07:10 +0000 (15:07 +0000)
extensions/libip6t_connlimit.c
extensions/libipt_connlimit.c

index fcbbcd20e899ad75e56309544c55a65893d2d68a..d66cffb0bd06a5014f556ae8622f63763d91ab82 100644 (file)
@@ -145,7 +145,7 @@ static struct ip6tables_match connlimit_reg = {
        .extra_opts    = connlimit_opts,
 };
 
-static __attribute__((constructor)) void libipt_connlimit_init(void)
+void _init(void)
 {
        register_match6(&connlimit_reg);
 }
index 6221c1f8ed05a8ecc8c33445e37f0bb3a9b54427..f6d1039555ede928898fefccb84f9285dc615dd3 100644 (file)
@@ -122,7 +122,7 @@ static struct iptables_match connlimit_reg = {
        .extra_opts    = connlimit_opts,
 };
 
-static __attribute__((constructor)) void libipt_connlimit_init(void)
+void _init(void)
 {
        register_match(&connlimit_reg);
 }