$NetBSD: patch-ab,v 1.1.1.1 2008/03/07 23:40:06 reed Exp $ --- portmap.c.orig 2003-03-19 23:42:46.000000000 -0800 +++ portmap.c 2003-03-19 23:44:06.000000000 -0800 @@ -85,6 +85,7 @@ #include #include #include +#include #include #include #include @@ -124,7 +125,6 @@ static void callit(); struct pmaplist *pmaplist; int debugging = 0; -extern int errno; #include "pmap_check.h" @@ -235,7 +235,7 @@ /* need to override perror calls in rpc library */ void perror(what) - const char *what; + __const char *what; { syslog(LOG_ERR, "%s: %m", what);