python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / irda-utils / 0004-musl.patch
blob6cf975b8c17d6965f47d410b0f49733fdddfbe76
1 Replace use of <net/if_packet.h> with <linux/if_packet.h>.
3 kernel headers <linux/if_packet.h> already provides the
4 needed definitions, moreover not all libc implementations
5 provide if_packet.h e.g. musl
7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 Upstream-Status: Pending
9 [From http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/musl.patch.]
10 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12 Index: irda-utils-0.9.18/irdaping/irdaping.c
13 ===================================================================
14 --- irda-utils-0.9.18.orig/irdaping/irdaping.c
15 +++ irda-utils-0.9.18/irdaping/irdaping.c
16 @@ -33,7 +33,6 @@
17 #include <sys/socket.h>
18 #include <sys/ioctl.h>
19 #include <net/if.h> /* For struct ifreq */
20 -#include <net/if_packet.h> /* For struct sockaddr_pkt */
21 #include <net/if_arp.h> /* For ARPHRD_IRDA */
22 #include <netinet/if_ether.h> /* For ETH_P_ALL */
23 #include <netinet/in.h> /* For htons */
24 @@ -46,6 +45,7 @@
25 #include <asm/byteorder.h> /* __cpu_to_le32 and co. */
27 #include <linux/types.h> /* For __u8 and co. */
28 +#include <linux/if_packet.h> /* For struct sockaddr_pkt */
29 #include <irda.h>
31 #ifndef AF_IRDA