summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraichen <graichen@openbsd.org>1997-01-20 09:13:22 +0000
committergraichen <graichen@openbsd.org>1997-01-20 09:13:22 +0000
commit52504c6fc431d4fe738b5534fa63b2994fed63ce (patch)
tree984f97b4124fe7372d3d4c108b6aa9cae3a5c437
parentback out my last change to avoid the __warn_references on the mips - it's (diff)
downloadwireguard-openbsd-52504c6fc431d4fe738b5534fa63b2994fed63ce.tar.xz
wireguard-openbsd-52504c6fc431d4fe738b5534fa63b2994fed63ce.zip
replace #ifndef NFSCLIENT with #if !defined(NFSCLIENT) || NETHER == 0
because revarpwhoami is defined in if_ether.c and netbooting without an ethernet card is very unusual :-) p.s.: seems like nobody uses OpenBSD in machines without a network card - because due to this it was'nt possible to build a kernel for such a configuration ...
-rw-r--r--sys/nfs/nfs_boot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_boot.c b/sys/nfs/nfs_boot.c
index bd765e0b705..b3488946e71 100644
--- a/sys/nfs/nfs_boot.c
+++ b/sys/nfs/nfs_boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_boot.c,v 1.7 1996/10/20 17:07:27 briggs Exp $ */
+/* $OpenBSD: nfs_boot.c,v 1.8 1997/01/20 09:13:22 graichen Exp $ */
/* $NetBSD: nfs_boot.c,v 1.26 1996/05/07 02:51:25 thorpej Exp $ */
/*
@@ -54,7 +54,7 @@
#include <nfs/xdr_subs.h>
#include <nfs/nfs_var.h>
-#ifndef NFSCLIENT
+#if !defined(NFSCLIENT) || NETHER == 0
int nfs_boot_init(nd, procp)
struct nfs_diskless *nd;
@@ -72,7 +72,7 @@ nfs_boot_getfh(bpsin, key, ndmntp)
/* can not get here */
}
-#else /* (ifdef NFSCLIENT) */
+#else /* (if !defined(NFSCLIENT) || NETHER == 0) */
/*
* Support for NFS diskless booting, specifically getting information