summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-06-30 23:49:08 +0000
committermiod <miod@openbsd.org>2005-06-30 23:49:08 +0000
commit3532d3a837e56927a623e1e05eaf293267b258e1 (patch)
tree9f5705738e7df2123f75e92a926f65812ea3f532
parentoops, used USRPTSIZE incorrectly (diff)
downloadwireguard-openbsd-3532d3a837e56927a623e1e05eaf293267b258e1.tar.xz
wireguard-openbsd-3532d3a837e56927a623e1e05eaf293267b258e1.zip
Do not compile RAMDISK_SERVER functionnality by default if option SMALL_KERNEL;
saves roughly 512 bytes.
-rw-r--r--sys/dev/ramdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 1faf08a35fa..0eb24402219 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ramdisk.c,v 1.25 2004/04/03 15:43:53 krw Exp $ */
+/* $OpenBSD: ramdisk.c,v 1.26 2005/06/30 23:49:08 miod Exp $ */
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/*
@@ -67,7 +67,7 @@
* By default, include the user-space functionality.
* Use: option RAMDISK_SERVER=0 to turn it off.
*/
-#ifndef RAMDISK_SERVER
+#if !defined(RAMDISK_SERVER) && !defined(SMALL_KERNEL)
#define RAMDISK_SERVER 1
#endif