Module Name: src Committed By: riastradh Date: Thu Oct 27 20:00:24 UTC 2022
Modified Files: src/sys/ddb: db_active.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/ddb/db_active.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ddb/db_active.h diff -u src/sys/ddb/db_active.h:1.1 src/sys/ddb/db_active.h:1.2 --- src/sys/ddb/db_active.h:1.1 Wed Oct 26 23:38:09 2022 +++ src/sys/ddb/db_active.h Thu Oct 27 20:00:24 2022 @@ -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;