Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen wrap some code with #if defined(NFS_BOOT_BO...
details: https://anonhg.NetBSD.org/src/rev/021063f5f096
branches: trunk
changeset: 583443:021063f5f096
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Aug 07 04:54:58 2005 +0000
description:
wrap some code with #if defined(NFS_BOOT_BOOTSTATIC).
diffstat:
sys/arch/xen/xen/if_xennet.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (52 lines):
diff -r d6b1b112f778 -r 021063f5f096 sys/arch/xen/xen/if_xennet.c
--- a/sys/arch/xen/xen/if_xennet.c Sun Aug 07 04:54:07 2005 +0000
+++ b/sys/arch/xen/xen/if_xennet.c Sun Aug 07 04:54:58 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_xennet.c,v 1.28 2005/07/07 12:01:25 yamt Exp $ */
+/* $NetBSD: if_xennet.c,v 1.29 2005/08/07 04:54:58 yamt Exp $ */
/*
*
@@ -33,9 +33,10 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.28 2005/07/07 12:01:25 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.29 2005/08/07 04:54:58 yamt Exp $");
#include "opt_inet.h"
+#include "opt_nfs_boot.h"
#include "rnd.h"
#include <sys/param.h>
@@ -69,12 +70,14 @@
#include <netinet/ip.h>
#endif
+#if defined(NFS_BOOT_BOOTSTATIC)
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
#include <nfs/nfs.h>
#include <nfs/nfsmount.h>
#include <nfs/nfsdiskless.h>
+#endif /* defined(NFS_BOOT_BOOTSTATIC) */
#include "bpfilter.h"
#if NBPFILTER > 0
@@ -1216,6 +1219,7 @@
}
#endif
+#if defined(NFS_BOOT_BOOTSTATIC)
int
xennet_bootstatic_callback(struct nfs_diskless *nd)
{
@@ -1243,6 +1247,7 @@
NFS_BOOTSTATIC_HAS_MASK|NFS_BOOTSTATIC_HAS_SERVADDR|
NFS_BOOTSTATIC_HAS_SERVER);
}
+#endif /* defined(NFS_BOOT_BOOTSTATIC) */
#ifdef XENNET_DEBUG_DUMP
Home |
Main Index |
Thread Index |
Old Index