diff options
author | Hann-Huei Chiou <koala@ascenvision.com> | 2007-10-23 14:22:34 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2007-10-23 14:22:34 +0000 |
commit | 4bc48331d2d1ef64ba452329f2c77137036f6437 (patch) | |
tree | f1fda910401a2d27f3157b6c1c2a34e47c9e2d12 /ip6tables-restore.c | |
parent | 032722b2d24138ee92e459c779ae4869f33b1f37 (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-restore.c')
-rw-r--r-- | ip6tables-restore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 8b56c083..f7c36097 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -111,7 +111,11 @@ static void free_argv(void) { free(newargv[i]); } +#ifdef IPTABLES_MULTI +int ip6tables_restore_main(int argc, char *argv[]) +#else int main(int argc, char *argv[]) +#endif { ip6tc_handle_t handle = NULL; char buffer[10240]; |