#include "kbd.h" for NKBD and only override cn_isconsole to check cn_hw if set.
Fixes compilation without kbd.
This commit is contained in:
parent
b8836fd1a4
commit
ae80876d99
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: z8530var.h,v 1.5 2002/03/11 07:11:26 chs Exp $ */
|
||||
/* $NetBSD: z8530var.h,v 1.6 2002/09/30 09:43:13 abs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -47,6 +47,9 @@
|
||||
#include <machine/bus.h>
|
||||
#include <dev/ic/z8530sc.h>
|
||||
|
||||
#include "kbd.h" /* NKBD */
|
||||
|
||||
#if (NKBD > 0)
|
||||
/*
|
||||
* Need to override cn_console_dev() for zstty and zskbd.
|
||||
*/
|
||||
@ -56,6 +59,7 @@
|
||||
extern struct consdev *cn_hw;
|
||||
extern struct consdev *cn_tab;
|
||||
#define cn_isconsole(d) ((d) == cn_tab->cn_dev || (d) == cn_hw->cn_dev)
|
||||
#endif
|
||||
|
||||
struct zsc_softc {
|
||||
struct device zsc_dev; /* base device */
|
||||
|
Loading…
Reference in New Issue
Block a user