0003-networking-libiproute-use-linux-if_packet.h-instead-.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From d4fec31889ad660a58dab633c511221feb66e817 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 5 Oct 2013 15:55:06 +0200
  4. Subject: [PATCH 3/3] networking/libiproute: use <linux/if_packet.h> instead of
  5. <net/if_packet.h>
  6. The musl C library doesn't provide the <net/if_packet.h> since the
  7. corresponding kernel headers <linux/if_packet.h> already provides the
  8. necessary definitions. Replacing <net/if_packet.h> by
  9. <linux/if_packet.h> also removes the need to include
  10. <netpacket/packet.h>
  11. This commit fixes the build of iplink with the musl C library.
  12. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  13. ---
  14. networking/libiproute/iplink.c | 3 +--
  15. 1 file changed, 1 insertion(+), 2 deletions(-)
  16. diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
  17. index bad2017..32ccb1c 100644
  18. --- a/networking/libiproute/iplink.c
  19. +++ b/networking/libiproute/iplink.c
  20. @@ -5,8 +5,7 @@
  21. * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  22. */
  23. #include <net/if.h>
  24. -#include <net/if_packet.h>
  25. -#include <netpacket/packet.h>
  26. +#include <linux/if_packet.h>
  27. #include <netinet/if_ether.h>
  28. #include "ip_common.h" /* #include "libbb.h" is inside */
  29. --
  30. 1.8.1.2