aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/vpnc/working.patch
blob: 2a6e1a19a2febc96b72a3345a1b4d570c0f86702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/sysdep.c b/sysdep.c
index ff07753..43fdb74 100644
--- a/sysdep.c
+++ b/sysdep.c
@@ -59,7 +59,7 @@
 #if defined(__DragonFly__)
 #include <net/tun/if_tun.h>
 #elif defined(__linux__)
-#include <linux/if_tun.h>
+/*#include <linux/if_tun.h>*/
 #elif defined(__APPLE__)
 /* no header for tun */
 #elif defined(__CYGWIN__)
diff --git a/sysdep.h b/sysdep.h
index a5eafd6..af34e94 100644
--- a/sysdep.h
+++ b/sysdep.h
@@ -38,11 +38,13 @@ int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
 
 /***************************************************************************/
 #if defined(__linux__) || defined(__GLIBC__)
+#ifdef __GLIBC__
 #include <error.h>
+#define HAVE_ERROR     1
+#endif
 
 #define HAVE_VASPRINTF 1
 #define HAVE_ASPRINTF  1
-#define HAVE_ERROR     1
 #define HAVE_GETLINE   1
 #define HAVE_UNSETENV  1
 #define HAVE_SETENV    1