blob: 33b4d4b255d29cea7589968a659ab885e5d39377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ag,v 1.1 2010/05/14 06:18:49 pettai Exp $
--- libtun6/diag.c.orig 2010-05-11 21:04:33.000000000 +0200
+++ libtun6/diag.c 2010-05-11 21:10:22.000000000 +0200
@@ -98,10 +98,10 @@
return -1;
}
#else
+ const char tundev[] = "/dev/tun0";
#if 1 /* BSD creates a tunnel even on stat() - skip diagnostics */
return 0;
#else
- const char tundev[] = "/dev/tun0";
struct stat st;
if (stat (tundev, &st) == 0)
|