]> andersk Git - openssh.git/blobdiff - openbsd-compat/port-tun.c
- (djm) [loginrec.c ssh-rand-helper.c sshd.c openbsd-compat/glob.c]
[openssh.git] / openbsd-compat / port-tun.c
index d09fe3d064357c4e50c791e3494480d5f245383d..a87b809d51ea74911462e4d545c231fda3acb626 100644 (file)
 
 #include "includes.h"
 
+#include <sys/types.h>
 #include <sys/ioctl.h>
 #include <netinet/ip.h>
 
+#include <fcntl.h>
+
 #include "log.h"
 #include "misc.h"
 #include "bufaux.h"
@@ -29,6 +32,7 @@
  * settings.
  *
  * SSH_TUN_LINUX       Use the (newer) Linux tun/tap device
+ * SSH_TUN_FREEBSD     Use the FreeBSD tun/tap device
  * SSH_TUN_COMPAT_AF   Translate the OpenBSD address family
  * SSH_TUN_PREPEND_AF  Prepend/remove the address family
  */
@@ -96,7 +100,10 @@ sys_tun_open(int tun, int mode)
 #ifdef SSH_TUN_FREEBSD
 #include <sys/socket.h>
 #include <net/if.h>
+
+#ifdef HAVE_NET_IF_TUN_H
 #include <net/if_tun.h>
+#endif
 
 int
 sys_tun_open(int tun, int mode)
This page took 0.033663 seconds and 4 git commands to generate.