Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ddb Include "ctype.h" if we are not building a kernel to...



details:   https://anonhg.NetBSD.org/src/rev/ea3d175bd129
branches:  trunk
changeset: 751348:ea3d175bd129
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Feb 01 09:56:58 2010 +0000

description:
Include "ctype.h" if we are not building a kernel to fix the build
of crash(8).

diffstat:

 sys/ddb/db_write_cmd.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 42d765b43963 -r ea3d175bd129 sys/ddb/db_write_cmd.c
--- a/sys/ddb/db_write_cmd.c    Mon Feb 01 09:45:04 2010 +0000
+++ b/sys/ddb/db_write_cmd.c    Mon Feb 01 09:56:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_write_cmd.c,v 1.24 2010/01/31 21:52:23 phx Exp $    */
+/*     $NetBSD: db_write_cmd.c,v 1.25 2010/02/01 09:56:58 tron Exp $   */
 
 /*
  * Mach Operating System
@@ -30,13 +30,17 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_write_cmd.c,v 1.24 2010/01/31 21:52:23 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_write_cmd.c,v 1.25 2010/02/01 09:56:58 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
 
 #include <ddb/ddb.h>
 
+#ifndef _KERNEL
+#include <ctype.h>
+#endif
+
 /*
  * Write to file.
  */



Home | Main Index | Thread Index | Old Index