Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libz Don't try to use <stdio.h> (when -DDEBUG) if we...



details:   https://anonhg.NetBSD.org/src/rev/382c70547559
branches:  trunk
changeset: 472138:382c70547559
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 22 16:32:01 1999 +0000

description:
Don't try to use <stdio.h> (when -DDEBUG) if we are -D_STANDALONE or -D_KERNEL
Now the boot blocks compile with -DDEBUG

diffstat:

 sys/lib/libz/zutil.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e8c27630c2ff -r 382c70547559 sys/lib/libz/zutil.h
--- a/sys/lib/libz/zutil.h      Thu Apr 22 16:22:49 1999 +0000
+++ b/sys/lib/libz/zutil.h      Thu Apr 22 16:32:01 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zutil.h,v 1.5 1998/11/03 22:00:38 tron Exp $ */
+/* $NetBSD: zutil.h,v 1.6 1999/04/22 16:32:01 christos Exp $ */
 
 /* zutil.h -- internal interface and configuration of the compression library
  * Copyright (C) 1995-1998 Jean-loup Gailly.
@@ -196,7 +196,7 @@
 #endif
 
 /* Diagnostic functions */
-#ifdef DEBUG
+#if defined(DEBUG) && !defined(_KERNEL) && !defined(_STANDALONE)
 #  include <stdio.h>
    extern int z_verbose;
    extern void z_error    OF((char *m));



Home | Main Index | Thread Index | Old Index