diff options
Diffstat (limited to 'src/bsd/tun.c')
-rw-r--r-- | src/bsd/tun.c | 4 |
1 files changed, 2 insertions, 2 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; |