summaryrefslogtreecommitdiff
path: root/graphics/xart/patches/patch-aj
blob: 526a855dc06b6cc290d5384bac036bee2b3a6faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aj,v 1.1 2006/02/23 21:24:12 joerg Exp $

--- rw/libpnmrw.c.orig	2006-02-23 21:15:15.000000000 +0000
+++ rw/libpnmrw.c
@@ -32,6 +32,7 @@
 /* #define MSDOS */
 #endif
 
+#include <errno.h>
 #include <stdio.h>
 #include "libpnmrw.h"
 
@@ -133,7 +134,6 @@ pm_perror(char *reason)
 #else
     extern char *sys_errlist[];
 #endif
-    extern int errno;
     char *e;
 
     e = sys_errlist[errno];