Subject: Re: top3.3 with recent -current
To: None <msanders@confusion.net>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 10/04/1995 10:44:29
>From: "Michael K. Sanders" <msanders@confusion.net>
>Does anyone have patches for top3.3 that work with -current? The ones
>I had stopped working a while back...
I had to hack the standard m_netbsd files up a bit, but it still
works.
The diffs below are relative to the distributed top-3.3.tar.gz. They
fix the problem with getopt() and the usual sys_errlist type mismatch
problem.
*** utils.c.orig Wed Feb 8 00:14:49 1995
--- utils.c Sat Jul 1 12:24:09 1995
***************
*** 298,304 ****
--- 298,306 ----
/* externs referenced by errmsg */
+ #ifndef HAVE_STRERROR
extern char *sys_errlist[];
+ #endif
extern int sys_nerr;
char *errmsg(errnum)
***************
*** 308,314 ****
--- 310,320 ----
{
if (errnum > 0 && errnum < sys_nerr)
{
+ #ifndef HAVE_STRERROR
return(sys_errlist[errnum]);
+ #else
+ return(strerror(errnum));
+ #endif
}
return("No error");
}
*** machine/m_netbsd10.c.orig Fri Feb 24 17:50:23 1995
--- machine/m_netbsd10.c Sat Jul 1 12:53:53 1995
***************
*** 16,21 ****
--- 16,23 ----
*
* LIBS: -lkvm
*
+ * CFLAGS: -DHAVE_GETOPT -DHAVE_STRERROR
+ *
* AUTHOR: Christos Zoulas <christos@ee.cornell.edu>
* Steven Wallace <swallace@freebsd.org>
* Wolfram Schneider <wosch@cs.tu-berlin.de>
--
Mike Long <mike.long@analog.com> http://www.shore.net/~mikel
VLSI Design Engineer finger mikel@shore.net for PGP public key
Analog Devices, CPD Division CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA assert(*this!=opinionof(Analog));