summaryrefslogtreecommitdiff
path: root/sys/dev/ramdisk.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-06-30 23:49:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-06-30 23:49:09 +0000
commit7fb38b820b35cf82d19de6335ce7b6ca2bb6dd96 (patch)
treedf5d5c54b93ba45de6e7381ccc7f4dea5d8665ac /sys/dev/ramdisk.c
parent77234233d566a98ae6e199b981575864c130f198 (diff)
Do not compile RAMDISK_SERVER functionnality by default if option SMALL_KERNEL;
saves roughly 512 bytes.
Diffstat (limited to 'sys/dev/ramdisk.c')
-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