[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH] remove unused header inclusion which breaks build with musl libc
From:       John Spencer <maillist-busybox () barfooze ! de>
Date:       2013-08-15 15:50:34
Message-ID: 520CF8CA.6060801 () barfooze ! de
[Download RAW message or body]

networking/libiproute/iplink.c includes net/if_packet.h, which (on 
GLIBC) only defines struct sockaddr_pkt. this struct is not used 
anywhere in the code, and removing the #include makes compilation 
succeed with musl libc.

Signed-off-by: John Spencer <maillist-busybox@barfooze.de>

["busybox-unneeded-include.patch" (text/x-patch)]

diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index a686eb2..101ee71 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -6,7 +6,6 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 #include <net/if.h>
-#include <net/if_packet.h>
 #include <netpacket/packet.h>
 #include <netinet/if_ether.h>
 


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic