$NetBSD$

--- portmap.c.orig	1996-05-31 13:52:59.000000000 +0000
+++ portmap.c
@@ -85,6 +85,7 @@ static char sccsid[] = "@(#)portmap.c 1.
 #include <stdio.h>
 #include <syslog.h>
 #include <netdb.h>
+#include <errno.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>
@@ -124,7 +125,6 @@ void reap();
 static void callit();
 struct pmaplist *pmaplist;
 int debugging = 0;
-extern int errno;
 
 #include "pmap_check.h"
 
@@ -234,8 +234,7 @@ main(argc, argv)
 #ifndef lint
 /* need to override perror calls in rpc library */
 void
-perror(what)
-	const char *what;
+perror(char* what)
 {
 
 	syslog(LOG_ERR, "%s: %m", what);
