Module Name: src
Committed By: kre
Date: Mon Sep 17 01:49:54 UTC 2018
Modified Files:
src/sys/ddb: db_command.c
Log Message:
When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.
To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/ddb/db_command.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ddb/db_command.c
diff -u src/sys/ddb/db_command.c:1.159 src/sys/ddb/db_command.c:1.160
--- src/sys/ddb/db_command.c:1.159 Sun Sep 16 23:18:55 2018
+++ src/sys/ddb/db_command.c Mon Sep 17 01:49:54 2018
@@ -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 str
return ENOENT;
}
+#ifndef _KERNEL
+#define cnpollc(c) __nothing
+#endif
+
/*
* This function is called via db_trap() or directly from
* machine trap code.