From 4186f8aa0b113ea1a52aa90292ff89b96bed9c39 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 23 Jul 2009 20:21:45 +0200 Subject: build: fix struct size mismatch Mixing code compiled with and without -DNO_SHARED_LIBS is fine as long as the structs have the same layout. This patch prevents a potential (currently non-triggerable) "ip6tables: target (null)<123> is missing a version" error. Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/xtables.h.in b/include/xtables.h.in index 222e2a9f..7468302c 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -90,9 +90,7 @@ struct xtables_match unsigned int option_offset; struct xt_entry_match *m; unsigned int mflags; -#ifdef NO_SHARED_LIBS unsigned int loaded; /* simulate loading so options are merged properly */ -#endif }; struct xtables_target @@ -152,9 +150,7 @@ struct xtables_target struct xt_entry_target *t; unsigned int tflags; unsigned int used; -#ifdef NO_SHARED_LIBS unsigned int loaded; /* simulate loading so options are merged properly */ -#endif }; struct xtables_rule_match { -- cgit v1.2.3