summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-12-02 21:37:28 +0000
committerbz <bz@FreeBSD.org>2008-12-02 21:37:28 +0000
commit604d89458ab94ec81eaefa2d55ef219cba461e31 (patch)
treee9bacc5bf23d71b60a706b2c5f58a92e6fb570cb /sys/nfsclient
parent94db7634b6344ba280905cbac5c04f1f92b41457 (diff)
downloadFreeBSD-src-604d89458ab94ec81eaefa2d55ef219cba461e31.zip
FreeBSD-src-604d89458ab94ec81eaefa2d55ef219cba461e31.tar.gz
Rather than using hidden includes (with cicular dependencies),
directly include only the header files needed. This reduces the unneeded spamming of various headers into lots of files. For now, this leaves us with very few modules including vnet.h and thus needing to depend on opt_route.h. Reviewed by: brooks, gnn, des, zec, imp Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/bootp_subr.c1
-rw-r--r--sys/nfsclient/nfs_diskless.c2
-rw-r--r--sys/nfsclient/nfs_vnops.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c
index 1274da0..6f1014d 100644
--- a/sys/nfsclient/bootp_subr.c
+++ b/sys/nfsclient/bootp_subr.c
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h>
#include <net/if_types.h>
#include <net/if_dl.h>
+#include <net/vnet.h>
#include <rpc/rpcclnt.h>
diff --git a/sys/nfsclient/nfs_diskless.c b/sys/nfsclient/nfs_diskless.c
index 7362aa9..0259790 100644
--- a/sys/nfsclient/nfs_diskless.c
+++ b/sys/nfsclient/nfs_diskless.c
@@ -50,6 +50,8 @@ __FBSDID("$FreeBSD$");
#include <net/if_types.h>
#include <net/if_var.h>
#include <net/ethernet.h>
+#include <net/vnet.h>
+
#include <netinet/in.h>
#include <rpc/rpcclnt.h>
#include <nfs/rpcv2.h>
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index b019af0..7399470 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -83,6 +83,7 @@ __FBSDID("$FreeBSD$");
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_var.h>
+#include <netinet/vinet.h>
/* Defs */
#define TRUE 1
OpenPOWER on IntegriCloud