summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-11 18:04:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-11 18:04:09 +0000
commitd5df649b1c2447fd1789ba78ad4dbec935cbaeef (patch)
treed91aeb4940476b2cb8cac401a68feaeb9624f47e /sys
parent7737d19037009f073d44520eb85e48c48ae416af (diff)
permit builds with NFSSERVER, without NFSCLIENT; cmetz
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_swap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index 86d5ee0b5f8..56a72b5c91f 100644
--- a/sys/vm/vm_swap.c
+++ b/sys/vm/vm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_swap.c,v 1.11 1999/07/06 16:53:04 deraadt Exp $ */
+/* $OpenBSD: vm_swap.c,v 1.12 1999/10/11 18:04:08 deraadt Exp $ */
/* $NetBSD: vm_swap.c,v 1.64 1998/11/08 19:45:17 mycroft Exp $ */
/*
@@ -534,9 +534,9 @@ swap_on(p, sdp)
#ifdef SWAP_TO_FILES
struct vattr va;
#endif
-#if defined(NFSSERVER) || defined(NFSCLIENT)
+#ifdef NFSCLIENT
extern int (**nfsv2_vnodeop_p) __P((void *));
-#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */
+#endif /* NFSCLIENT */
dev_t dev = sdp->swd_dev;
char *name;
@@ -570,11 +570,11 @@ swap_on(p, sdp)
goto bad;
sdp->swd_bsize = vp->v_mount->mnt_stat.f_iosize;
-#if defined(NFSSERVER) || defined(NFSCLIENT)
+#ifdef NFSCLIENT
if (vp->v_op == nfsv2_vnodeop_p)
sdp->swd_maxactive = 2; /* XXX */
else
-#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */
+#endif /* NFSCLIENT */
sdp->swd_maxactive = 8; /* XXX */
break;
#endif