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

12345678910111213141516171819202122232425262728293031323334353637
  1. From e1690453cd84c798ca88cc4370710f65da86d986 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] 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. [Gustavo: update for busybox 1.22.0]
  14. Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
  15. ---
  16. networking/libiproute/iplink.c | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
  19. index 37ed114bc..bc526d89c 100644
  20. --- a/networking/libiproute/iplink.c
  21. +++ b/networking/libiproute/iplink.c
  22. @@ -7,7 +7,7 @@
  23. */
  24. #include <net/if.h>
  25. /*#include <net/if_packet.h> - not needed? */
  26. -#include <netpacket/packet.h>
  27. +#include <linux/if_packet.h>
  28. #include <netinet/if_ether.h>
  29. #include <linux/if_vlan.h>
  30. --
  31. 2.48.1