summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-13 15:07:10 +0000
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-13 15:07:10 +0000
commitef329f23c00ad848c1be9c2d6f90cc23c8919e6d (patch)
treebe15d21f12a816f451730fbe94e211249d9c8022
parent21df4af43dcc9f635baa2aff3ace53768d9704bc (diff)
Fixes compile error of connlimit where NO_SHARED_LIBS=1 is specified
-rw-r--r--extensions/libip6t_connlimit.c2
-rw-r--r--extensions/libipt_connlimit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_connlimit.c b/extensions/libip6t_connlimit.c
index fcbbcd20..d66cffb0 100644
--- a/extensions/libip6t_connlimit.c
+++ b/extensions/libip6t_connlimit.c
@@ -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);
}
diff --git a/extensions/libipt_connlimit.c b/extensions/libipt_connlimit.c
index 6221c1f8..f6d10395 100644
--- a/extensions/libipt_connlimit.c
+++ b/extensions/libipt_connlimit.c
@@ -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);
}