The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / aiccu / 0004-if-ether-header.patch
1 musl does not allow using <netinet/*> together with <linux/*> headers.
2 Since there are both netinet/if_ether.h and linux/if_ether.h providing
3 the same definitions, use linux/if_ether.h whenever other linux/*
4 headers are included.
5
6 Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
7
8 --- aiccu/common/common.h
9 +++ aiccu/common/common.h
10 @@ -91,11 +91,12 @@
11         #include <sys/select.h>
12  
13         #include <net/if.h>
14 -       #include <netinet/if_ether.h>
15  #ifdef linux
16         #include <netpacket/packet.h>
17 +       #include <linux/if_ether.h>
18         #include <linux/if_tun.h>
19  #else
20 +       #include <netinet/if_ether.h>
21  #ifdef _DFBSD
22         #include <net/tun/if_tun.h>
23  #else