summaryrefslogtreecommitdiffstats
path: root/ip6tables-save.c
diff options
context:
space:
mode:
authorHann-Huei Chiou <koala@ascenvision.com>2007-10-23 14:22:34 +0000
committerPatrick McHardy <kaber@trash.net>2007-10-23 14:22:34 +0000
commit4bc48331d2d1ef64ba452329f2c77137036f6437 (patch)
treef1fda910401a2d27f3157b6c1c2a34e47c9e2d12 /ip6tables-save.c
parent032722b2d24138ee92e459c779ae4869f33b1f37 (diff)
let DO_MULTI=1 work for ip6tables* binaries
When defining DO_MULTI=1 in Makefile, only iptables is built as a single multipurpose binary. This patch makes ip6tables also be built in the same manner. Hann-huei Chiou <koala@ascenvision.com>
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r--ip6tables-save.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c
index d751fb33..d828404c 100644
--- a/ip6tables-save.c
+++ b/ip6tables-save.c
@@ -316,7 +316,11 @@ static int do_output(const char *tablename)
* :Chain name POLICY packets bytes
* rule
*/
+#ifdef IPTABLES_MULTI
+int ip6tables_save_main(int argc, char *argv[])
+#else
int main(int argc, char *argv[])
+#endif
{
const char *tablename = NULL;
int c;