0ad167e25b
Fixes http://autobuild.buildroot.net/results/8c666ef11310868097601b6de1dd25779729b878/ if_ether.h issue discussion: http://www.openwall.com/lists/musl/2012/10/11/1 Patch 0001-gnutls-and-uclibc-fixes split into gnutls part (0001) and res_ninit part (0005) which is not uclibc-specific but happens to affect musl as well. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
632 B
Diff
24 lines
632 B
Diff
musl does not allow using <netinet/*> together with <linux/*> headers.
|
|
Since there are both netinet/if_ether.h and linux/if_ether.h providing
|
|
the same definitions, use linux/if_ether.h whenever other linux/*
|
|
headers are included.
|
|
|
|
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
|
|
|
|
--- aiccu/common/common.h
|
|
+++ aiccu/common/common.h
|
|
@@ -91,11 +91,12 @@
|
|
#include <sys/select.h>
|
|
|
|
#include <net/if.h>
|
|
- #include <netinet/if_ether.h>
|
|
#ifdef linux
|
|
#include <netpacket/packet.h>
|
|
+ #include <linux/if_ether.h>
|
|
#include <linux/if_tun.h>
|
|
#else
|
|
+ #include <netinet/if_ether.h>
|
|
#ifdef _DFBSD
|
|
#include <net/tun/if_tun.h>
|
|
#else
|