if NUSB == 0, don't look for usbhist.

This commit is contained in:
mrg 2015-10-29 18:40:19 +00:00
parent c0d072e685
commit 1e1a1a8da3
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_history.c,v 1.2 2015/10/29 00:27:08 mrg Exp $ */ /* $NetBSD: kern_history.c,v 1.3 2015/10/29 18:40:19 mrg Exp $ */
/* /*
* Copyright (c) 1997 Charles D. Cranor and Washington University. * Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -33,7 +33,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.2 2015/10/29 00:27:08 mrg Exp $"); __KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.3 2015/10/29 18:40:19 mrg Exp $");
#include "opt_kernhist.h" #include "opt_kernhist.h"
#include "opt_ddb.h" #include "opt_ddb.h"
@ -46,6 +46,11 @@ __KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.2 2015/10/29 00:27:08 mrg Exp $")
#include <sys/cpu.h> #include <sys/cpu.h>
#include <sys/kernhist.h> #include <sys/kernhist.h>
#include "usb.h"
#if NUSB == 0
#undef USB_DEBUG
#endif
#ifdef UVMHIST #ifdef UVMHIST
#include <uvm/uvm.h> #include <uvm/uvm.h>
#endif #endif