summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"