diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-tun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c index d09fe3d06..6e1fed969 100644 --- a/openbsd-compat/port-tun.c +++ b/openbsd-compat/port-tun.c | |||
@@ -29,6 +29,7 @@ | |||
29 | * settings. | 29 | * settings. |
30 | * | 30 | * |
31 | * SSH_TUN_LINUX Use the (newer) Linux tun/tap device | 31 | * SSH_TUN_LINUX Use the (newer) Linux tun/tap device |
32 | * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device | ||
32 | * SSH_TUN_COMPAT_AF Translate the OpenBSD address family | 33 | * SSH_TUN_COMPAT_AF Translate the OpenBSD address family |
33 | * SSH_TUN_PREPEND_AF Prepend/remove the address family | 34 | * SSH_TUN_PREPEND_AF Prepend/remove the address family |
34 | */ | 35 | */ |
@@ -96,7 +97,10 @@ sys_tun_open(int tun, int mode) | |||
96 | #ifdef SSH_TUN_FREEBSD | 97 | #ifdef SSH_TUN_FREEBSD |
97 | #include <sys/socket.h> | 98 | #include <sys/socket.h> |
98 | #include <net/if.h> | 99 | #include <net/if.h> |
100 | |||
101 | #ifdef HAVE_NET_IF_TUN_H | ||
99 | #include <net/if_tun.h> | 102 | #include <net/if_tun.h> |
103 | #endif | ||
100 | 104 | ||
101 | int | 105 | int |
102 | sys_tun_open(int tun, int mode) | 106 | sys_tun_open(int tun, int mode) |