diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-06 20:24:52 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-06 20:24:52 +0000 |
commit | 5173d0d2d46f86f6051e451b6326135215d3c5ff (patch) | |
tree | c3f91b7cce2cd0743276579b0e42ef8d29283e5b | |
parent | 6b30a38c3135ba23fd18260d61678d8bf9c67423 (diff) |
This code will not work without UVM.
Add an #error instead of breaking while compiling.
-rw-r--r-- | sys/kern/kern_malloc_debug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c index 2289c3083a0..380e522e6b6 100644 --- a/sys/kern/kern_malloc_debug.c +++ b/sys/kern/kern_malloc_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc_debug.c,v 1.1 2000/06/06 20:18:20 art Exp $ */ +/* $OpenBSD: kern_malloc_debug.c,v 1.2 2000/06/06 20:24:51 art Exp $ */ /* * Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org> @@ -59,6 +59,10 @@ #include <sys/malloc.h> #include <sys/systm.h> +#if !defined(UVM) +#error MALLOC_DEBUG will not work without UVM. +#endif + #include <vm/vm.h> #include <vm/vm_kern.h> #include <uvm/uvm.h> |