[OpenWrt-Devel] [PATCH] [openwrt-routing] mcast-tools: fix linux/pim.h include

2014-05-02 Thread Dirk Neukirchen
fix wrong struct in pim.h big endian case
it leads to compile error on ar71xx and other arch
Error was:
In file included from debug.c:71:0:
../include/linux/pim.h:14:3: error: expected specifier-qualifier-list before 
'pim_type'
   pim_type:4;  /* PIM message type */
   ^
make[6]: *** [debug.o] Error 1

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 mcast-tools/patches/0004-fix_linux_pim.h_include.patch | 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 mcast-tools/patches/0004-fix_linux_pim.h_include.patch

diff --git a/mcast-tools/patches/0004-fix_linux_pim.h_include.patch 
b/mcast-tools/patches/0004-fix_linux_pim.h_include.patch
new file mode 100644
index 000..7f8b9bc
--- /dev/null
+++ b/mcast-tools/patches/0004-fix_linux_pim.h_include.patch
@@ -0,0 +1,11 @@
+--- a/include/linux/pim.h
 b/include/linux/pim.h
+@@ -10,7 +10,7 @@ struct pim {
+   __u8pim_type:4, /* PIM message type */
+   pim_ver:4;  /* PIM version */
+ #elif defined(__BIG_ENDIAN_BITFIELD)
+-  __u8pim_ver:4;  /* PIM version */
++  __u8pim_ver:4,  /* PIM version */
+   pim_type:4; /* PIM message type */
+ #endif
+   __u8pim_rsv;/* Reserved */
-- 
2.0.0.rc0



smime.p7s
Description: S/MIME Cryptographic Signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [openwrt-routing] mcast-tools: fix linux/pim.h include

2014-05-02 Thread Steven Barth

Applied, thx.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel