|
@@ -19,17 +19,17 @@
|
19
|
19
|
#endif
|
20
|
20
|
--- a/sysdep.c
|
21
|
21
|
+++ b/sysdep.c
|
22
|
|
-@@ -59,7 +59,9 @@
|
|
22
|
+@@ -59,6 +59,10 @@
|
23
|
23
|
#if defined(__DragonFly__)
|
24
|
24
|
#include <net/tun/if_tun.h>
|
25
|
25
|
#elif defined(__linux__)
|
26
|
|
--#include <linux/if_tun.h>
|
27
|
|
-+# if defined(__GLIBC__) || defined(__UCLIBC__)
|
28
|
|
-+# include <linux/if_tun.h>
|
|
26
|
++# if !defined(__GLIBC__) && !defined(__UCLIBC__)
|
|
27
|
++# define _LINUX_IF_ETHER_H
|
|
28
|
++# include <net/ethernet.h>
|
29
|
29
|
+# endif
|
|
30
|
+ #include <linux/if_tun.h>
|
30
|
31
|
#elif defined(__APPLE__)
|
31
|
32
|
/* no header for tun */
|
32
|
|
- #elif defined(__CYGWIN__)
|
33
|
33
|
--- a/config.c
|
34
|
34
|
+++ b/config.c
|
35
|
35
|
@@ -28,6 +28,7 @@
|