summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-12-18 00:17:09 +0000
committerChristian Pointner <equinox@anytun.org>2009-12-18 00:17:09 +0000
commitf9475faede237c9d2f185ae439af7354f163d933 (patch)
treeef12a65c6bd88244305d0dde9ec4f1b453a56fbd /src
parentfixed wrong renames (diff)
added patch from Cyril Brulebois in order to enable build on Debian/Freebsd Kernel
Diffstat (limited to 'src')
-rw-r--r--src/bsd/tun.c4
-rwxr-xr-xsrc/configure2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c
index 21d16a4..46c7c1c 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -183,7 +183,7 @@ int tun_init_post(tun_device_t* dev)
return 0;
}
-#elif defined(__GNUC__) && defined(__FreeBSD__)
+#elif defined(__GNUC__) && (defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
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";
-#elif defined(__GNUC__) && defined(__FreeBSD__)
+#elif defined(__GNUC__) && (defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
end = "up";
#elif defined(__GNUC__) && defined(__NetBSD__)
end = NULL;
diff --git a/src/configure b/src/configure
index f4ed32d..ac2dc03 100755
--- a/src/configure
+++ b/src/configure
@@ -147,7 +147,7 @@ case $TARGET in
ln -sf linux/tun.c
echo "loading Linux specific TUN Device"
;;
- OpenBSD|FreeBSD|NetBSD)
+ OpenBSD|FreeBSD|NetBSD|GNU/kFreeBSD)
rm -f tun.c
ln -sf bsd/tun.c
echo "loading BSD specific TUN Device"