If we don't have ethernet, nfs_boot_init reduces to just a panic. trunk
authorpaulus <paulus@NetBSD.org>
Sat, 16 Jul 1994 11:43:12 +0000
branchtrunk
changeset 9148 cd5d80421bcc
parent 9147 32608e1fb8e5
child 9149 9a2c22e02542
If we don't have ethernet, nfs_boot_init reduces to just a panic. This is so I don't get an undefined symbol compiling a kernel with NFSCLIENT but no ethernet.
sys/nfs/nfs_boot.c
--- a/sys/nfs/nfs_boot.c	Sat Jul 16 11:40:56 1994 +0000
+++ b/sys/nfs/nfs_boot.c	Sat Jul 16 11:43:12 1994 +0000
@@ -1,4 +1,4 @@
-/*    $NetBSD: nfs_boot.c,v 1.6 1994/06/29 07:28:36 deraadt Exp $ */
+/*    $NetBSD: nfs_boot.c,v 1.7 1994/07/16 11:43:12 paulus Exp $ */
 
 /*
  * Copyright (c) 1994 Adam Glass, Gordon Ross
@@ -49,6 +49,9 @@
 #include <nfs/nfs.h>
 #include <nfs/nfsdiskless.h>
 
+#include "ether.h"
+#if NETHER > 0
+
 /*
  * Support for NFS diskless booting, specifically getting information
  * about where to boot from, what pathnames, etc.
@@ -602,3 +605,14 @@
 	m_freem(m);
 	return error;
 }
+
+#else /* NETHER */
+
+int nfs_boot_init(nd, procp)
+	struct nfs_diskless *nd;
+	struct proc *procp;
+{
+	panic("nfs_boot_init: no ether");
+}
+
+#endif /* NETHER */