summaryrefslogtreecommitdiffstats
path: root/package/irda-utils/0004-musl.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-30 11:13:18 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-07 22:15:17 +0100
commit6c3e982a7dfba9ee09a50f56401ca981424a847c (patch)
treefadea39ef453b488902bdd931deb0707e444599b /package/irda-utils/0004-musl.patch
parent2c7a6f522053bbff8066106eb4f67ab83d0c4273 (diff)
downloadbuildroot-6c3e982a7dfba9ee09a50f56401ca981424a847c.tar.gz
buildroot-6c3e982a7dfba9ee09a50f56401ca981424a847c.zip
package/irda-utils: fix musl build
Fixes http://autobuild.buildroot.net/results/9df/9dfa781a6ebbd8af6aad650067c30a4342b83f0d/ http://autobuild.buildroot.net/results/fee/feed5bc6393fb35be755790d53218fc0d228d850/ and others Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/irda-utils/0004-musl.patch')
-rw-r--r--package/irda-utils/0004-musl.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/irda-utils/0004-musl.patch b/package/irda-utils/0004-musl.patch
new file mode 100644
index 0000000000..6cf975b8c1
--- /dev/null
+++ b/package/irda-utils/0004-musl.patch
@@ -0,0 +1,31 @@
+Replace use of <net/if_packet.h> with <linux/if_packet.h>.
+
+kernel headers <linux/if_packet.h> already provides the
+needed definitions, moreover not all libc implementations
+provide if_packet.h e.g. musl
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Upstream-Status: Pending
+[From http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/musl.patch.]
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+Index: irda-utils-0.9.18/irdaping/irdaping.c
+===================================================================
+--- irda-utils-0.9.18.orig/irdaping/irdaping.c
++++ irda-utils-0.9.18/irdaping/irdaping.c
+@@ -33,7 +33,6 @@
+ #include <sys/socket.h>
+ #include <sys/ioctl.h>
+ #include <net/if.h> /* For struct ifreq */
+-#include <net/if_packet.h> /* For struct sockaddr_pkt */
+ #include <net/if_arp.h> /* For ARPHRD_IRDA */
+ #include <netinet/if_ether.h> /* For ETH_P_ALL */
+ #include <netinet/in.h> /* For htons */
+@@ -46,6 +45,7 @@
+ #include <asm/byteorder.h> /* __cpu_to_le32 and co. */
+
+ #include <linux/types.h> /* For __u8 and co. */
++#include <linux/if_packet.h> /* For struct sockaddr_pkt */
+ #include <irda.h>
+
+ #ifndef AF_IRDA
OpenPOWER on IntegriCloud