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

1234567891011121314151617181920212223242526272829
  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] 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. diff -Nura busybox-1.22.0.orig/networking/libiproute/iplink.c busybox-1.22.0/networking/libiproute/iplink.c
  15. --- busybox-1.22.0.orig/networking/libiproute/iplink.c 2014-01-01 09:42:40.301137882 -0300
  16. +++ busybox-1.22.0/networking/libiproute/iplink.c 2014-01-01 09:43:01.282827700 -0300
  17. @@ -7,7 +7,7 @@
  18. */
  19. #include <net/if.h>
  20. /*#include <net/if_packet.h> - not needed? */
  21. -#include <netpacket/packet.h>
  22. +#include <linux/if_packet.h>
  23. #include <netinet/if_ether.h>
  24. #include <linux/if_vlan.h>