summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-12-18 00:12:55 +0000
committerChristian Pointner <equinox@anytun.org>2009-12-18 00:12:55 +0000
commit63a9467c993d9f259e875421d79545a5870bfa04 (patch)
treecb21157f00b41732b1ff05c3a63a5db8a9158316 /src
parentfixed permissions bug at make install (diff)
added patch from Cyril Brulebois in order to enable build on Debian/Freebsd Kernel
Diffstat (limited to 'src')
-rw-r--r--src/bsd/tunDevice.cpp4
-rwxr-xr-xsrc/configure2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp
index 4fdd5fd..6dd3419 100644
--- a/src/bsd/tunDevice.cpp
+++ b/src/bsd/tunDevice.cpp
@@ -149,7 +149,7 @@ void TunDevice::init_post()
}
}
-#elif defined(__GNUC__) && defined(__FreeBSD__)
+#elif defined(__GNUC__) && (defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
void TunDevice::init_post()
{
@@ -262,7 +262,7 @@ void TunDevice::do_ifconfig()
else {
#if defined(__GNUC__) && defined(__OpenBSD__)
args.push_back("link0");
-#elif defined(__GNUC__) && defined(__FreeBSD__)
+#elif defined(__GNUC__) && (defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
args.push_back("up");
#elif defined(__GNUC__) && defined(__NetBSD__)
// nothing to be done here
diff --git a/src/configure b/src/configure
index 5381010..3194d74 100755
--- a/src/configure
+++ b/src/configure
@@ -148,7 +148,7 @@ case $TARGET in
ln -sf linux/tunDevice.cpp
echo "loading Linux specific TUN Device"
;;
- OpenBSD|FreeBSD|NetBSD)
+ OpenBSD|FreeBSD|NetBSD|GNU/kFreeBSD)
rm -rf tunDevice.cpp
ln -sf bsd/tunDevice.cpp
echo "loading BSD specific TUN Device"