Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix build problems for kernel configurations withou...



details:   https://anonhg.NetBSD.org/src/rev/83ca5402aecf
branches:  trunk
changeset: 546600:83ca5402aecf
user:      tron <tron%NetBSD.org@localhost>
date:      Fri May 02 09:19:51 2003 +0000

description:
Fix build problems for kernel configurations without the "ksyms"
pseudo-device.

diffstat:

 sys/kern/kern_ksyms.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r ff3bca77597e -r 83ca5402aecf sys/kern/kern_ksyms.c
--- a/sys/kern/kern_ksyms.c     Fri May 02 09:11:52 2003 +0000
+++ b/sys/kern/kern_ksyms.c     Fri May 02 09:19:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_ksyms.c,v 1.5 2003/05/01 20:46:20 ragge Exp $     */
+/*     $NetBSD: kern_ksyms.c,v 1.6 2003/05/02 09:19:51 tron Exp $      */
 /*
  * Copyright (c) 2001, 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
  * All rights reserved.
@@ -195,8 +195,10 @@
                if (sym[i].st_name == 0)
                        continue;
                j = strlen(sym[i].st_name + tab->sd_strstart) + 1;
+#if NKSYMS
                if (j > ksyms_maxlen)
                        ksyms_maxlen = j;
+#endif
        }
 
        CIRCLEQ_INSERT_HEAD(&symtab_queue, tab, sd_queue);
@@ -407,8 +409,10 @@
        savedsyms[cursyms] = *sym;
        symnmoff[cursyms] = savedsyms[cursyms].st_name = curnamep;
        curnamep += len;
+#ifdef KSYMS_DEBUG
        if (len > ksyms_maxlen)
                ksyms_maxlen = len;
+#endif
        cursyms++;
 }
 /*



Home | Main Index | Thread Index | Old Index