summaryrefslogtreecommitdiff
path: root/graphics/xpaint/patches/patch-ab
blob: 310301867b59bec2b2f45b84bea5bb66c0d2b127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ab,v 1.4 2004/11/03 15:54:31 adam Exp $

--- rw/libpnmrw.c.orig	2004-09-03 07:49:44.000000000 +0000
+++ rw/libpnmrw.c
@@ -131,6 +131,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
@@ -149,6 +150,7 @@ pm_perror(char *reason)
 #if !defined(__EMX__) || defined(__CYGWIN__)
     extern int errno;
 #endif
+#endif
     char *e;
 
 #ifdef MISSING_STRERROR