3 @@ -37,12 +37,14 @@ int tun_read(int fd, unsigned char *buf,
4 int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
6 /***************************************************************************/
7 -#if defined(__linux__) || defined(__GLIBC__)
8 +#if defined(__GLIBC__) || defined(__UCLIBC__)
13 +#if defined(__linux__) || defined(__GLIBC__)
14 #define HAVE_VASPRINTF 1
15 #define HAVE_ASPRINTF 1
17 #define HAVE_UNSETENV 1
23 #if defined(__DragonFly__)
24 #include <net/tun/if_tun.h>
25 #elif defined(__linux__)
26 +# if !defined(__GLIBC__) && !defined(__UCLIBC__)
27 +# define _LINUX_IF_ETHER_H
28 +# include <net/ethernet.h>
30 #include <linux/if_tun.h>
31 #elif defined(__APPLE__)
32 /* no header for tun */
39 +#include <sys/ttydefaults.h>
40 #include <sys/types.h>
41 #include <sys/utsname.h>