Fix build with NFB=0
This commit is contained in:
parent
a771a1c39a
commit
23b16936e8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kd.c,v 1.25 1997/02/10 23:26:21 gwr Exp $ */
|
||||
/* $NetBSD: kd.c,v 1.26 1998/02/26 16:02:02 gwr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -62,6 +62,8 @@
|
||||
#include <dev/sun/kbd_xlate.h>
|
||||
#include <sun3/dev/zs_cons.h>
|
||||
|
||||
#include "fb.h"
|
||||
|
||||
extern void fb_unblank __P((void)); /* XXX */
|
||||
|
||||
#define KDMAJOR 1
|
||||
@ -494,7 +496,9 @@ kdcnpollc(dev, on)
|
||||
|
||||
if (on) {
|
||||
/* Entering debugger. */
|
||||
#if NFB > 0
|
||||
fb_unblank();
|
||||
#endif
|
||||
/* Clear shift keys too. */
|
||||
ks->kbd_modbits = 0;
|
||||
} else {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: conf.c,v 1.59 1998/02/11 19:42:29 gwr Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.60 1998/02/26 16:01:18 gwr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 Adam Glass, Gordon W. Ross
|
||||
@ -87,6 +87,7 @@ cdev_decl(cn);
|
||||
|
||||
cdev_decl(ctty);
|
||||
|
||||
#include "fb.h"
|
||||
#define fbpoll seltrue
|
||||
cdev_decl(fb);
|
||||
|
||||
@ -223,7 +224,7 @@ struct cdevsw cdevsw[] =
|
||||
cdev_disk_init(NVND,vnd), /* 19: vnode disk driver */
|
||||
cdev_tty_init(NPTY,pts), /* 20: pseudo-tty slave */
|
||||
cdev_ptc_init(NPTY,ptc), /* 21: pseudo-tty master */
|
||||
cdev_fb_init(1,fb), /* 22: /dev/fb indirect driver */
|
||||
cdev_fb_init(NFB,fb), /* 22: /dev/fb indirect driver */
|
||||
cdev_fd_init(1,filedesc), /* 23: file descriptor pseudo-device */
|
||||
cdev_bpftun_init(NTUN,tun), /* 24: network tunnel */
|
||||
cdev_notdef(), /* 25: sun pi? */
|
||||
|
Loading…
Reference in New Issue
Block a user