diff options
author | 2000-06-06 20:24:51 +0000 | |
---|---|---|
committer | 2000-06-06 20:24:51 +0000 | |
commit | a8c2cdf316929dda8e04404de1c94b98a10534e2 (patch) | |
tree | f4e40693f00336e2763c464fbd9931ab8b63d30d /sys/kern/kern_malloc_debug.c | |
parent | memory type for MALLOC_DEBUG (diff) | |
download | wireguard-openbsd-a8c2cdf316929dda8e04404de1c94b98a10534e2.tar.xz wireguard-openbsd-a8c2cdf316929dda8e04404de1c94b98a10534e2.zip |
This code will not work without UVM.
Add an #error instead of breaking while compiling.
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-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> |