Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb When this file is used when not building the kernel ...
details: https://anonhg.NetBSD.org/src/rev/7f666ffcc9af
branches: trunk
changeset: 993556:7f666ffcc9af
user: kre <kre%NetBSD.org@localhost>
date: Mon Sep 17 01:49:54 2018 +0000
description:
When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.
diffstat:
sys/ddb/db_command.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r a99e5a38ee2e -r 7f666ffcc9af sys/ddb/db_command.c
--- a/sys/ddb/db_command.c Mon Sep 17 00:15:55 2018 +0000
+++ b/sys/ddb/db_command.c Mon Sep 17 01:49:54 2018 +0000
@@ -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 @@
return ENOENT;
}
+#ifndef _KERNEL
+#define cnpollc(c) __nothing
+#endif
+
/*
* This function is called via db_trap() or directly from
* machine trap code.
Home |
Main Index |
Thread Index |
Old Index