From adae60836f4301f041ea5479de5f91e4b739e9d9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 1 May 1997 01:24:54 +0000 Subject: [PATCH] Disable declarations for sys_errlist and sys_nerr except where needed. Most systems define these nowadays. --- v7/src/microcode/uxtop.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/v7/src/microcode/uxtop.c b/v7/src/microcode/uxtop.c index 2e2b505d5..b9d9a84a9 100644 --- a/v7/src/microcode/uxtop.c +++ b/v7/src/microcode/uxtop.c @@ -1,8 +1,8 @@ /* -*-C-*- -$Id: uxtop.c,v 1.19 1996/04/23 20:50:20 cph Exp $ +$Id: uxtop.c,v 1.20 1997/05/01 01:24:54 cph Exp $ -Copyright (c) 1990-96 Massachusetts Institute of Technology +Copyright (c) 1990-97 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -297,11 +297,18 @@ DEFUN (syserr_to_error_code, (syserr), enum syserr_names syserr) } } +#ifdef _HPUX +#define NEED_ERRLIST_DEFINITIONS +#endif + +#ifdef NEED_ERRLIST_DEFINITIONS +extern char * sys_errlist []; +extern int sys_nerr; +#endif + CONST char * DEFUN (OS_error_code_to_message, (syserr), unsigned int syserr) { - extern char * sys_errlist []; - extern int sys_nerr; int code = (syserr_to_error_code ((enum syserr_names) syserr)); return (((code > 0) && (code <= sys_nerr)) ? (sys_errlist [code]) : 0); } -- 2.25.1