diff options
-rw-r--r-- | src/bsd/tun.c | 4 | ||||
-rwxr-xr-x | src/configure | 2 |
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" |