Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Only declare ttydefchars if _KERNEL is defined.



details:   https://anonhg.NetBSD.org/src/rev/d8799179b4f2
branches:  trunk
changeset: 540034:d8799179b4f2
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Dec 02 05:11:02 2002 +0000

description:
Only declare ttydefchars if _KERNEL is defined.

diffstat:

 sys/sys/ttydefaults.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 50efc3589526 -r d8799179b4f2 sys/sys/ttydefaults.h
--- a/sys/sys/ttydefaults.h     Mon Dec 02 02:36:14 2002 +0000
+++ b/sys/sys/ttydefaults.h     Mon Dec 02 05:11:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ttydefaults.h,v 1.11 2002/12/01 21:24:28 matt Exp $    */
+/*     $NetBSD: ttydefaults.h,v 1.12 2002/12/02 05:11:02 matt Exp $    */
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -88,6 +88,7 @@
 /*
  * #define TTYDEFCHARS to include an array of default control characters.
  */
+#ifdef _KERNEL
 #ifdef TTYDEFCHARS
 cc_t   ttydefchars[NCCS] = {
        CEOF,   CEOL,   CEOL,   CERASE, CWERASE, CKILL, CREPRINT,
@@ -98,3 +99,4 @@
 #else
 extern cc_t ttydefchars[NCCS];
 #endif
+#endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index