Default MEMORY_DISK_SERVER to 1 instead of using 'undefined' to mean 1.

This commit is contained in:
dsl 2007-07-15 08:40:22 +00:00
parent d9a445af4f
commit 9a71120654
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files,v 1.850 2007/07/14 10:52:14 ad Exp $
# $NetBSD: files,v 1.851 2007/07/15 08:40:22 dsl Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@ -233,7 +233,7 @@ defflag opt_kstack.h KSTACK_CHECK_MAGIC
#
defflag opt_md.h MEMORY_DISK_HOOKS MEMORY_DISK_IS_ROOT
MEMORY_DISK_DYNAMIC
defparam opt_md.h MEMORY_DISK_SERVER MEMORY_DISK_ROOT_SIZE
defparam opt_md.h MEMORY_DISK_SERVER=1 MEMORY_DISK_ROOT_SIZE
MEMORY_RBFLAGS
defflag opt_tftproot.h TFTPROOT TFTPROOT_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.48 2007/03/04 06:01:42 christos Exp $ */
/* $NetBSD: md.c,v 1.49 2007/07/15 08:40:22 dsl Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.48 2007/03/04 06:01:42 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.49 2007/07/15 08:40:22 dsl Exp $");
#include "opt_md.h"
@ -67,11 +67,11 @@ __KERNEL_RCSID(0, "$NetBSD: md.c,v 1.48 2007/03/04 06:01:42 christos Exp $");
#include <dev/md.h>
/*
* By default, include the user-space functionality.
* The user-space functionality is included by default.
* Use `options MEMORY_DISK_SERVER=0' to turn it off.
*/
#ifndef MEMORY_DISK_SERVER
#define MEMORY_DISK_SERVER 1
#error MEMORY_DISK_SERVER should be defined by opt_md.h
#endif /* MEMORY_DISK_SERVER */
/*