summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-03-01 21:24:46 +0000
committerkstailey <kstailey@openbsd.org>1997-03-01 21:24:46 +0000
commit4b6908881c99ff073d5946eceeda0dc8bf6f54cd (patch)
tree5a266fb4f6106b5bfda8dd120e1095e846164a3f
parentFreeBSD changes + my changes (diff)
downloadwireguard-openbsd-4b6908881c99ff073d5946eceeda0dc8bf6f54cd.tar.xz
wireguard-openbsd-4b6908881c99ff073d5946eceeda0dc8bf6f54cd.zip
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