diff options
author | 2013-10-17 16:27:39 +0000 | |
---|---|---|
committer | 2013-10-17 16:27:39 +0000 | |
commit | dc5728648b28d91cc99d2d69701421acb75285aa (patch) | |
tree | 600cb1e0f3ff13e01aba5b7d1ab60f81cb69574a /sys/net/if_tun.c | |
parent | remove capability to do a.out (diff) | |
download | wireguard-openbsd-dc5728648b28d91cc99d2d69701421acb75285aa.tar.xz wireguard-openbsd-dc5728648b28d91cc99d2d69701421acb75285aa.zip |
The header file netinet/in_var.h included netinet6/in6_var.h. This
created a bunch of useless dependencies. Remove this implicit
inclusion and do an explicit #include <netinet6/in6_var.h> when it
is needed.
OK mpi@ henning@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index b6e9ab1c55a..0b3964271f5 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.116 2013/10/04 08:40:32 mpi Exp $ */ +/* $OpenBSD: if_tun.c,v 1.117 2013/10/17 16:27:41 bluhm Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -70,6 +70,10 @@ #include <netinet/if_ether.h> #endif +#ifdef INET6 +#include <netinet6/in6_var.h> +#endif + #ifdef PIPEX #include <net/pipex.h> #endif |