summaryrefslogtreecommitdiff
path: root/graphics/xart/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xart/patches/patch-aj')
-rw-r--r--graphics/xart/patches/patch-aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/xart/patches/patch-aj b/graphics/xart/patches/patch-aj
new file mode 100644
index 00000000000..526a855dc06
--- /dev/null
+++ b/graphics/xart/patches/patch-aj
@@ -0,0 +1,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];