summaryrefslogtreecommitdiff
path: root/graphics/xpaint/files/patch-af
blob: 7ad2db5c00bb154a399cb257d706c2b60f356f20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- rw/libpnmrw.c.orig	Wed Oct  4 00:16:52 2000
+++ rw/libpnmrw.c	Wed Oct  4 00:18:10 2000
@@ -131,6 +131,7 @@
 static void
 pm_perror(char *reason)
 {
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
 #if defined(BSD4_4)
     __const extern char *__const sys_errlist[];
 #else
@@ -146,6 +147,7 @@
 #endif
 #if !defined(__EMX__) || defined(__CYGWIN__)
     extern int errno;
+#endif
 #endif
     char *e;