From a2c49bf69e77c79111750f3515bdbec47f692e3e Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 28 Apr 1999 13:24:12 +0000 Subject: [PATCH] Nuke local prototype for closeall(). Add a new define LIBSA_NO_CLOSE so that we don't try to close files, if we are not using any other I/O. --- sys/lib/libsa/panic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/lib/libsa/panic.c b/sys/lib/libsa/panic.c index 6d74eefe6496..ed124d4fcaf9 100644 --- a/sys/lib/libsa/panic.c +++ b/sys/lib/libsa/panic.c @@ -1,4 +1,4 @@ -/* $NetBSD: panic.c,v 1.1 1999/02/12 10:51:28 drochner Exp $ */ +/* $NetBSD: panic.c,v 1.2 1999/04/28 13:24:12 christos Exp $ */ /*- * Copyright (c) 1993 John Brezak @@ -43,14 +43,15 @@ panic(fmt /*, va_alist */) char *fmt; #endif { - extern void closeall __P((void)); va_list ap; +#ifndef LIBSA_NO_CLOSE static int paniced; if (!paniced) { paniced = 1; closeall(); } +#endif #ifdef __STDC__ va_start(ap, fmt);