fix musl compatibility
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 18 Jun 2015 21:58:31 +0000 (23:58 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Jul 2015 15:34:37 +0000 (17:34 +0200)
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

src/have.h

index 9dc3b04c6d7d85a1ff87e8678ebb6b5f26e0e1a0..88733a1e47edbd7485520c7ae607af97777a0344 100644 (file)
 #include <resolv.h>
 #endif
 
+#ifdef HAVE_LINUX_IF_TUN_H
+#include <linux/if_tun.h>
+#endif
+
 #ifdef STATUS
 #undef STATUS
 #endif