summaryrefslogtreecommitdiffstats
path: root/iptables/fix-build-with-3.2.patch
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-03-17 18:32:59 +0000
committerpiernov <piernov@piernov.org>2012-03-17 18:32:59 +0000
commit80a6378997bcb2602bb404edd870a9f559e3bbe1 (patch)
treedcf4e6d12d26ab4b2f2499b7e9ab063df537c86f /iptables/fix-build-with-3.2.patch
parent5dfcc01fe2d50ac6ac9417bb20ee9afd9ad42b21 (diff)
downloadnutyx-extra-80a6378997bcb2602bb404edd870a9f559e3bbe1.tar.gz
nutyx-extra-80a6378997bcb2602bb404edd870a9f559e3bbe1.tar.bz2
nutyx-extra-80a6378997bcb2602bb404edd870a9f559e3bbe1.tar.xz
nutyx-extra-80a6378997bcb2602bb404edd870a9f559e3bbe1.zip
iptables 1.4.12.2-1 màj port
Diffstat (limited to 'iptables/fix-build-with-3.2.patch')
-rw-r--r--iptables/fix-build-with-3.2.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/iptables/fix-build-with-3.2.patch b/iptables/fix-build-with-3.2.patch
new file mode 100644
index 000000000..0b580af11
--- /dev/null
+++ b/iptables/fix-build-with-3.2.patch
@@ -0,0 +1,20 @@
+
+Include the __aligned_* from 3.2 include/types.h to fix build.
+
+Signed-off-by: Thomas Backlund <tmb@mageia.org>
+
+
+--- iptables-1.4.12.2/include/xtables.h.in.orig 2012-01-02 19:19:09.000000000 +0200
++++ iptables-1.4.12.2/include/xtables.h.in 2012-01-06 16:22:57.900569755 +0200
+@@ -34,6 +34,11 @@
+ #define XTABLES_VERSION "libxtables.so.@libxtables_vmajor@"
+ #define XTABLES_VERSION_CODE @libxtables_vmajor@
+
++/* copied from linux 3.2 include/types.h to fix build */
++#define __aligned_u64 __u64 __attribute__((aligned(8)))
++#define __aligned_be64 __be64 __attribute__((aligned(8)))
++#define __aligned_le64 __le64 __attribute__((aligned(8)))
++
+ struct in_addr;
+
+ /*