With the upcoming ag71xx patch the __packed attribute can leak into the rest of the build, and iptables does not have it defined.
This defines it. --- package/iptables/patches/900-packed.patch | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 package/iptables/patches/900-packed.patch diff --git a/package/iptables/patches/900-packed.patch b/package/iptables/patches/900-packed.patch new file mode 100644 index 0000000..3442f26 --- /dev/null +++ b/package/iptables/patches/900-packed.patch @@ -0,0 +1,28 @@ +diff --git a/include/iptables.h b/include/iptables.h +index c42613c..4ae9298 100644 +--- a/include/iptables.h ++++ b/include/iptables.h +@@ -5,6 +5,9 @@ + #include <xtables.h> + #include <libiptc/libiptc.h> + #include <iptables/internal.h> ++#ifndef __packed ++#define __packed __attribute__((packed)) ++#endif + + /* Your shared library should call one of these. */ + extern int do_command4(int argc, char *argv[], char **table, +diff --git a/include/xtables.h.in b/include/xtables.h.in +index 28e2933..03081bb 100644 +--- a/include/xtables.h.in ++++ b/include/xtables.h.in +@@ -5,6 +5,9 @@ + * Changing any structs/functions may incur a needed change + * in libxtables_vcurrent/vage too. + */ ++#ifndef __packed ++#define __packed __attribute__((packed)) ++#endif + + #include <sys/socket.h> /* PF_* */ + #include <sys/types.h> -- 1.7.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel