summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorkre <kre@NetBSD.org>2018-09-17 01:49:54 +0000
committerkre <kre@NetBSD.org>2018-09-17 01:49:54 +0000
commitcd9ec0ef48110f5509d48254a62f6c5e4c1aac17 (patch)
tree5ee71ab699a01a5291a3c869c1e46f18d4c8086a /sys/ddb/db_command.c
parentf37577f76ba66e3eff79b09cdd5b19ac95d7bbb9 (diff)
When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 7d8e37d1a48..f42f337a3fb 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.159 2018/09/16 23:18:55 mrg Exp $ */
+/* $NetBSD: db_command.c,v 1.160 2018/09/17 01:49:54 kre Exp $ */
/*
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.159 2018/09/16 23:18:55 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.160 2018/09/17 01:49:54 kre Exp $");
#ifdef _KERNEL_OPT
#include "opt_aio.h"
@@ -542,6 +542,10 @@ db_unregister_tbl(uint8_t type,const struct db_command *cmd_tbl)
return ENOENT;
}
+#ifndef _KERNEL
+#define cnpollc(c) __nothing
+#endif
+
/*
* This function is called via db_trap() or directly from
* machine trap code.