busybox-1.01: make ping6.c compile against glibc-2.4
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 15 Mar 2006 16:56:00 +0000 (16:56 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 15 Mar 2006 16:56:00 +0000 (16:56 +0000)
packages/busybox/busybox_1.01.bb
packages/busybox/files/glibc2.4-icmp6.patch [new file with mode: 0644]

index 2ef3068..cbef98d 100644 (file)
@@ -29,6 +29,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://udhcpscript.patch;patch=1 \
           file://thumb-bsdlabel.patch;patch=1 \
            file://uclibc_posix.patch;patch=1 \
+           file://glibc2.4-icmp6.patch;patch=1 \
            file://defconfig \
            file://busybox-cron \
           file://busybox-httpd \
diff --git a/packages/busybox/files/glibc2.4-icmp6.patch b/packages/busybox/files/glibc2.4-icmp6.patch
new file mode 100644 (file)
index 0000000..3cec1dd
--- /dev/null
@@ -0,0 +1,15 @@
+--- busybox-1.01/networking/ping6.c.orig       2006-03-15 15:43:21.000000000 +0100
++++ busybox-1.01/networking/ping6.c    2006-03-15 15:49:29.000000000 +0100
+@@ -56,6 +56,12 @@
+ #include <stddef.h>                           /* offsetof */
+ #include "busybox.h"
++#ifndef ICMP6_MEMBERSHIP_QUERY                        /* glibc >= 2.4 */
++#define ICMP6_MEMBERSHIP_QUERY     MLD_LISTENER_QUERY 
++#define ICMP6_MEMBERSHIP_REPORT    MLD_LISTENER_REPORT        
++#define ICMP6_MEMBERSHIP_REDUCTION MLD_LISTENER_REDUCTION
++#endif
++
+ static const int DEFDATALEN = 56;
+ static const int MAXIPLEN = 60;
+ static const int MAXICMPLEN = 76;