1From 60da1d0763224698008d847eb8ad8d4d8c6f54ff Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3Date: Sat, 5 Oct 2013 15:55:06 +0200
4Subject: [PATCH] networking/libiproute: use <linux/if_packet.h> instead of
5 <net/if_packet.h>
6
7The musl C library doesn't provide the <net/if_packet.h> since the
8corresponding kernel headers <linux/if_packet.h> already provides the
9necessary definitions. Replacing <net/if_packet.h> by
10<linux/if_packet.h> also removes the need to include
11<netpacket/packet.h>
12
13This commit fixes the build of iplink with the musl C library.
14
15Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16[Gustavo: update for busybox 1.22.0]
17Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
18---
19 networking/libiproute/iplink.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
23index 1a1064bdc..a4c3ad307 100644
24--- a/networking/libiproute/iplink.c
25+++ b/networking/libiproute/iplink.c
26@@ -7,7 +7,7 @@
27  */
28 #include <net/if.h>
29 /*#include <net/if_packet.h> - not needed? */
30-#include <netpacket/packet.h>
31+#include <linux/if_packet.h>
32 #include <netinet/if_ether.h>
33
34 #include <linux/if_vlan.h>
35--
362.33.0
37
38