From 5173d0d2d46f86f6051e451b6326135215d3c5ff Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 6 Jun 2000 20:24:52 +0000 Subject: This code will not work without UVM. Add an #error instead of breaking while compiling. --- sys/kern/kern_malloc_debug.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') 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 @@ -59,6 +59,10 @@ #include #include +#if !defined(UVM) +#error MALLOC_DEBUG will not work without UVM. +#endif + #include #include #include -- cgit v1.2.3