From: Jan Engelhardt Date: Thu, 23 Jul 2009 18:21:45 +0000 (+0200) Subject: build: fix struct size mismatch X-Git-Tag: v1.4.5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4186f8aa0b113ea1a52aa90292ff89b96bed9c39;p=thirdparty%2Fiptables.git 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 --- 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 {