aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-06-02 12:42:24 +0000
committerJohn Crispin <john@openwrt.org>2007-06-02 12:42:24 +0000
commite271bc9e8c313ff5a75958a795d498d8dc778de7 (patch)
tree7edc85dd7f7d6f325707adacc5ef4e7a2582f1b6 /target/linux
parent61d6789f75a7b0a7b4954c4e77d10e76f19e50d1 (diff)
downloadupstream-e271bc9e8c313ff5a75958a795d498d8dc778de7.tar.gz
upstream-e271bc9e8c313ff5a75958a795d498d8dc778de7.tar.bz2
upstream-e271bc9e8c313ff5a75958a795d498d8dc778de7.zip
fixes compile bug of iptables
SVN-Revision: 7448
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/etrax-2.6/patches/cris/017-uclibc-swab.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/target/linux/etrax-2.6/patches/cris/017-uclibc-swab.patch b/target/linux/etrax-2.6/patches/cris/017-uclibc-swab.patch
new file mode 100644
index 0000000000..e9f14e44e4
--- /dev/null
+++ b/target/linux/etrax-2.6/patches/cris/017-uclibc-swab.patch
@@ -0,0 +1,50 @@
+Binary files linux-2.6.19.2.orig/include/linux/byteorder/.swab.h.swp and linux-2.6.19.2/include/linux/byteorder/.swab.h.swp differ
+diff -urN linux-2.6.19.2.orig/include/linux/byteorder/swab.h linux-2.6.19.2/include/linux/byteorder/swab.h
+--- linux-2.6.19.2.orig/include/linux/byteorder/swab.h 2007-06-02 03:13:27.000000000 +0200
++++ linux-2.6.19.2/include/linux/byteorder/swab.h 2007-06-02 03:14:52.000000000 +0200
+@@ -20,6 +20,8 @@
+ /* casts are necessary for constants, because we never know how for sure
+ * how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable way.
+ */
++
++#ifndef _BITS_BYTESWAP_H
+ #define ___swab16(x) \
+ ({ \
+ __u16 __x = (x); \
+@@ -37,6 +39,8 @@
+ (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | \
+ (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); \
+ })
++#endif
++
+
+ #define ___swab64(x) \
+ ({ \
+@@ -129,11 +133,13 @@
+ # define __swab64(x) __fswab64(x)
+ #endif /* OPTIMIZE */
+
+-
++#ifndef _BITS_BYTESWAP_H
+ static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
+ {
+ return __arch__swab16(x);
+ }
++#endif
++
+ static __inline__ __u16 __swab16p(const __u16 *x)
+ {
+ return __arch__swab16p(x);
+@@ -143,10 +149,12 @@
+ __arch__swab16s(addr);
+ }
+
++#ifndef _BITS_BYTESWAP_H
+ static __inline__ __attribute_const__ __u32 __fswab32(__u32 x)
+ {
+ return __arch__swab32(x);
+ }
++#endif
+ static __inline__ __u32 __swab32p(const __u32 *x)
+ {
+ return __arch__swab32p(x);