From 4bc48331d2d1ef64ba452329f2c77137036f6437 Mon Sep 17 00:00:00 2001 From: Hann-Huei Chiou Date: Tue, 23 Oct 2007 14:22:34 +0000 Subject: 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 --- ip6tables-restore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ip6tables-restore.c') 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]; -- cgit v1.2.3