2021-09-14 19:22:43 +02:00
|
|
|
From 60da1d0763224698008d847eb8ad8d4d8c6f54ff Mon Sep 17 00:00:00 2001
|
2014-01-01 14:58:16 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Sat, 5 Oct 2013 15:55:06 +0200
|
|
|
|
Subject: [PATCH] networking/libiproute: use <linux/if_packet.h> instead of
|
|
|
|
<net/if_packet.h>
|
|
|
|
|
|
|
|
The musl C library doesn't provide the <net/if_packet.h> since the
|
|
|
|
corresponding kernel headers <linux/if_packet.h> already provides the
|
|
|
|
necessary definitions. Replacing <net/if_packet.h> by
|
|
|
|
<linux/if_packet.h> also removes the need to include
|
|
|
|
<netpacket/packet.h>
|
|
|
|
|
|
|
|
This commit fixes the build of iplink with the musl C library.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
[Gustavo: update for busybox 1.22.0]
|
2021-09-14 19:22:43 +02:00
|
|
|
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
|
|
|
|
---
|
|
|
|
networking/libiproute/iplink.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2014-01-01 14:58:16 +01:00
|
|
|
|
2021-09-14 19:22:43 +02:00
|
|
|
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
|
|
|
|
index 1a1064bdc..a4c3ad307 100644
|
|
|
|
--- a/networking/libiproute/iplink.c
|
|
|
|
+++ b/networking/libiproute/iplink.c
|
2014-01-01 14:58:16 +01:00
|
|
|
@@ -7,7 +7,7 @@
|
|
|
|
*/
|
|
|
|
#include <net/if.h>
|
|
|
|
/*#include <net/if_packet.h> - not needed? */
|
|
|
|
-#include <netpacket/packet.h>
|
|
|
|
+#include <linux/if_packet.h>
|
|
|
|
#include <netinet/if_ether.h>
|
2021-09-14 19:22:43 +02:00
|
|
|
|
2014-01-01 14:58:16 +01:00
|
|
|
#include <linux/if_vlan.h>
|
2021-09-14 19:22:43 +02:00
|
|
|
--
|
|
|
|
2.33.0
|
|
|
|
|