$NetBSD: patch-ab,v 1.5 2005/05/23 11:37:23 adam Exp $ --- rw/libpnmrw.c.orig 2005-05-04 14:56:24.000000000 +0000 +++ rw/libpnmrw.c @@ -132,6 +132,7 @@ pm_freearray(char **its, int rows) static void pm_perror(char *reason) { +#if !defined(__NetBSD__) #if defined(BSD4_4) __const extern char *__const sys_errlist[]; #else @@ -147,6 +148,7 @@ pm_perror(char *reason) #endif #endif #endif +#endif char *e; #ifdef MISSING_STRERROR