summaryrefslogtreecommitdiff
path: root/graphics/xpaint/patches/patch-ab
blob: 0731cfdda5d206936c1c18710e65ae5891127d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.2 2001/03/30 21:44:49 hubertf Exp $

--- rw/libpnmrw.c.orig	Mon Oct  2 22:53:30 2000
+++ rw/libpnmrw.c
@@ -46,7 +46,7 @@
 
 void *malloc(int);
 void free(void *);
-#if defined(__EMX__) || defined(__CYGWIN__)
+#if defined(__EMX__) || defined(__CYGWIN__) || defined(__NetBSD__)
 #include <errno.h>
 #endif
 
@@ -131,6 +131,7 @@
 static void
 pm_perror(char *reason)
 {
+#if !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;