]> andersk Git - openssh.git/blobdiff - openbsd-compat/port-tun.c
- (dtucker) [openbsd-compat/port-tun.c] OpenBSD needs <netinet/in.h> before
[openssh.git] / openbsd-compat / port-tun.c
index d09fe3d064357c4e50c791e3494480d5f245383d..bee6b160c915ce2bcb729efadcf4428c1b671d57 100644 (file)
 
 #include "includes.h"
 
+#include <sys/types.h>
 #include <sys/ioctl.h>
+#include <netinet/in.h>
 #include <netinet/ip.h>
 
+#include <fcntl.h>
+
 #include "log.h"
 #include "misc.h"
 #include "bufaux.h"
@@ -29,6 +33,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 +101,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.02965 seconds and 4 git commands to generate.