From 25d93e6eef3f8d87cc125d62d6b3804351391681 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 27 May 2000 18:31:36 +0000 Subject: Make this compile for VM_PSTRAT_RANDOM. --- sys/vm/vm_page.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 4b2137d668a..6f38260b6e1 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_page.c,v 1.17 1999/09/03 18:02:28 art Exp $ */ +/* $OpenBSD: vm_page.c,v 1.18 2000/05/27 18:31:35 art Exp $ */ /* $NetBSD: vm_page.c,v 1.41 1998/02/08 18:24:52 thorpej Exp $ */ #define VM_PAGE_ALLOC_MEMORY_STATS @@ -528,7 +528,10 @@ vm_page_physload(start, end, avail_start, avail_end) { struct vm_page *pgs; struct vm_physseg *ps; - int preload, lcv, npages, x; + int preload, lcv, npages; +#if (VM_PHYSSEG_STRAT != VM_PSTRAT_RANDOM) + int x; +#endif if (page_shift == 0) panic("vm_page_physload: page size not set!"); -- cgit v1.2.3