From 1541028a42abd2814e86cd04f29fc0ae0164a7e4 Mon Sep 17 00:00:00 2001 From: YONETANI Tomokazu Date: Thu, 11 Sep 2008 01:11:42 +0000 Subject: [PATCH] #ifdef DDB without including "opt_ddb.h" --- sys/kern/kern_spinlock.c | 4 +++- sys/kern/lwkt_thread.c | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_spinlock.c b/sys/kern/kern_spinlock.c index 02829a6daa..32a358c6d0 100644 --- a/sys/kern/kern_spinlock.c +++ b/sys/kern/kern_spinlock.c @@ -29,9 +29,11 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_spinlock.c,v 1.15 2008/06/04 04:34:54 nth Exp $ + * $DragonFly: src/sys/kern/kern_spinlock.c,v 1.16 2008/09/11 01:11:42 y0netan1 Exp $ */ +#include "opt_ddb.h" + #include #include #include diff --git a/sys/kern/lwkt_thread.c b/sys/kern/lwkt_thread.c index 04e35370bb..4afb426fa8 100644 --- a/sys/kern/lwkt_thread.c +++ b/sys/kern/lwkt_thread.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/lwkt_thread.c,v 1.118 2008/09/09 07:21:54 dillon Exp $ + * $DragonFly: src/sys/kern/lwkt_thread.c,v 1.119 2008/09/11 01:11:42 y0netan1 Exp $ */ /* @@ -40,6 +40,7 @@ * to use a critical section to avoid problems. Foreign thread * scheduling is queued via (async) IPIs. */ +#include "opt_ddb.h" #include #include @@ -70,6 +71,10 @@ #include #include +#ifdef DDB +#include +#endif + static MALLOC_DEFINE(M_THREAD, "thread", "lwkt threads"); static int untimely_switch = 0; -- 2.41.0