Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Check _KERNEL_OPT before including opt_ddb.h.
details: https://anonhg.NetBSD.org/src/rev/d548d56195b4
branches: trunk
changeset: 1024124:d548d56195b4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Oct 10 19:11:56 2021 +0000
description:
Check _KERNEL_OPT before including opt_ddb.h.
diffstat:
sys/kern/kern_event.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 107d175d0e5e -r d548d56195b4 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c Sun Oct 10 19:07:19 2021 +0000
+++ b/sys/kern/kern_event.c Sun Oct 10 19:11:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_event.c,v 1.129 2021/10/10 18:07:51 thorpej Exp $ */
+/* $NetBSD: kern_event.c,v 1.130 2021/10/10 19:11:56 thorpej Exp $ */
/*-
* Copyright (c) 2008, 2009, 2021 The NetBSD Foundation, Inc.
@@ -58,10 +58,12 @@
* FreeBSD: src/sys/kern/kern_event.c,v 1.27 2001/07/05 17:10:44 rwatson Exp
*/
+#ifdef _KERNEL_OPT
#include "opt_ddb.h"
+#endif /* _KERNEL_OPT */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.129 2021/10/10 18:07:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.130 2021/10/10 19:11:56 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index