From a2a29828e349de22dc30e5a5c7d5d15220406ff2 Mon Sep 17 00:00:00 2001
From: Julien Grall <julien.grall@linaro.org>
Date: Tue, 14 Jan 2014 01:41:16 +0000
Subject: [PATCH 09/48] xen/console: Fix build when DDB is enabled

db_active doesn't exist anymore. The code needs to use kdb_active/gdb_active.

For now only use kdb_active and add the corresponding guards.
---
 sys/dev/xen/console/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/xen/console/console.c b/sys/dev/xen/console/console.c
index 5019ec9..37b2270 100644
--- a/sys/dev/xen/console/console.c
+++ b/sys/dev/xen/console/console.c
@@ -251,7 +251,7 @@ static boolean_t
 xcons_putc(int c)
 {
 	int force_flush = xc_mute ||
-#ifdef DDB
+#ifdef KDB
 		kdb_active ||
 #endif
 		panicstr;	/* we're not gonna recover, so force
-- 
2.1.0

