From 46a379e692df31ab9e4cd8edae65540146df52e4 Mon Sep 17 00:00:00 2001 From: he Date: Thu, 3 Jan 2008 21:30:16 +0000 Subject: [PATCH] Declare sysbeepdetach(), and protect a small additional section with #if (NPCPPI > 0). --- sys/arch/x86/isa/clock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/x86/isa/clock.c b/sys/arch/x86/isa/clock.c index 636151c0ddee..6555889381b2 100644 --- a/sys/arch/x86/isa/clock.c +++ b/sys/arch/x86/isa/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.17 2008/01/03 04:50:19 dyoung Exp $ */ +/* $NetBSD: clock.c,v 1.18 2008/01/03 21:30:16 he Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -121,7 +121,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include -__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.17 2008/01/03 04:50:19 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.18 2008/01/03 21:30:16 he Exp $"); /* #define CLOCKDEBUG */ /* #define CLOCK_PARANOIA */ @@ -195,6 +195,7 @@ static void rtcput(mc_todregs *); static int cmoscheck(void); static int clock_expandyear(int); +int sysbeepdetach(device_t, int); static unsigned int gettick_broken_latch(void); @@ -558,7 +559,9 @@ int sysbeepdetach(device_t self, int flags) { pmf_device_deregister(self); +#if (NPCPPI > 0) ppi_attached = 0; +#endif return 0; }