projects
/
debian
/
uanytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply patch based on the one from Cyril Brulebois for anytun to fix FTBFS on GNU...
[debian/uanytun.git]
/
src
/
bsd
/
tun.c
diff --git
a/src/bsd/tun.c
b/src/bsd/tun.c
index
21d16a4
..
46c7c1c
100644
(file)
--- a/
src/bsd/tun.c
+++ b/
src/bsd/tun.c
@@
-183,7
+183,7
@@
int tun_init_post(tun_device_t* dev)
return 0;
}
return 0;
}
-#elif defined(__GNUC__) &&
defined(__FreeBSD__
)
+#elif defined(__GNUC__) &&
(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
)
int tun_init_post(tun_device_t* dev)
{
int tun_init_post(tun_device_t* dev)
{
@@
-318,7
+318,7
@@
void tun_do_ifconfig(tun_device_t* dev)
if(dev->type_ == TYPE_TAP) {
#if defined(__GNUC__) && defined(__OpenBSD__)
end = "link0";
if(dev->type_ == TYPE_TAP) {
#if defined(__GNUC__) && defined(__OpenBSD__)
end = "link0";
-#elif defined(__GNUC__) &&
defined(__FreeBSD__
)
+#elif defined(__GNUC__) &&
(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
)
end = "up";
#elif defined(__GNUC__) && defined(__NetBSD__)
end = NULL;
end = "up";
#elif defined(__GNUC__) && defined(__NetBSD__)
end = NULL;