$NetBSD: patch-ac,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ --- libpnmrw.c.orig Thu Aug 17 00:24:26 1995 +++ libpnmrw.c @@ -28,6 +28,9 @@ #endif #include +#ifdef __NetBSD__ +# include +#endif #include "libpnmrw.h" /* if don't have string.h, try strings.h */ @@ -126,8 +129,10 @@ pm_perror( reason ) char* reason; { +#ifndef __NetBSD__ extern char* sys_errlist[]; extern int errno; +#endif char* e; e = sys_errlist[errno];