summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-03-01 21:24:47 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-03-01 21:24:47 +0000
commit777e5bea13c330e8aa78bc0382d678f908c0ba7a (patch)
treed40cc9e33eb8c5ef021267964545be298be04969
parent8270207664f0f0c6330924bf4778b3ac56f7761b (diff)
Allow building of kernels that do not keep malloc statistics via
"options NO_KMEMSTATS" in the config file. Does not change default behavior.
-rw-r--r--sys/sys/malloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h
index 63743b5102d..4b87be6fa20 100644
--- a/sys/sys/malloc.h
+++ b/sys/sys/malloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.h,v 1.9 1997/02/20 01:07:34 deraadt Exp $ */
+/* $OpenBSD: malloc.h,v 1.10 1997/03/01 21:24:46 kstailey Exp $ */
/* $NetBSD: malloc.h,v 1.23 1996/04/05 04:52:52 mhitch Exp $ */
/*
@@ -39,7 +39,9 @@
#ifndef _SYS_MALLOC_H_
#define _SYS_MALLOC_H_
+#ifndef NO_KMEMSTATS
#define KMEMSTATS
+#endif
/*
* flags to malloc