ddb(4): Declare extern db_active if _KMEMUSER too, not just DDB.
crash(8) is built with _KMEMUSER defined but DDB not defined except for a few specific files or on MIPS. Seems to me crash(8) should really be built with DDB defined in all .c files but that leads to other fallout I'm not really inclined to diagnose right now.
This commit is contained in:
parent
66775824fb
commit
7b4abd4b1d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_active.h,v 1.1 2022/10/26 23:38:09 riastradh Exp $ */
|
||||
/* $NetBSD: db_active.h,v 1.2 2022/10/27 20:00:24 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2022 The NetBSD Foundation, Inc.
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifdef DDB
|
||||
#if defined DDB || defined _KMEMUSER
|
||||
extern int db_active;
|
||||
#else
|
||||
static const int db_active __unused = 0;
|
||||
|
|
Loading…
Reference in New Issue