]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: fix struct size mismatch
authorJan Engelhardt <jengelh@medozas.de>
Thu, 23 Jul 2009 18:21:45 +0000 (20:21 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 25 Jul 2009 16:27:15 +0000 (18:27 +0200)
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 <jengelh@medozas.de>
include/xtables.h.in

index 222e2a9f2d8d3908fef65cf1a0b7a9d592f08e43..7468302c67d6b166a87cfda2dc2227a1ec606f04 100644 (file)
@@ -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 {