fix musl compatibility

Let configure include sys/if_tun.h when testing for netinet/if_ether.h
to detect the Kernel/libc header conflict on musl.

After this patch, configure will correctly detect netinet/if_ether.h as
unusable and the subsequent compilation will not attempt to use it.

Conflicts:
	src/have.h
This commit is contained in:
Jo-Philipp Wich 2015-06-18 23:58:31 +02:00 committed by Guus Sliepen
parent 37588b8d5c
commit 14ccf50954

View file

@ -206,6 +206,10 @@
#include <resolv.h>
#endif
#ifdef HAVE_LINUX_IF_TUN_H
#include <linux/if_tun.h>
#endif
#ifdef STATUS
#undef STATUS
#endif