summaryrefslogtreecommitdiff
path: root/graphics/xart/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-03-01 14:40:34 +0000
committerjoerg <joerg>2006-03-01 14:40:34 +0000
commit0612af1048e54f1a18eb3bbaa2b766296af0e796 (patch)
tree2c3afc4a64988da16015c83da386d112d1981230 /graphics/xart/patches
parent555b089c0384e3c2a38ab8b4ccf16e61d943c253 (diff)
downloadpkgsrc-0612af1048e54f1a18eb3bbaa2b766296af0e796.tar.gz
Don't declare sys_errlst, it is pulled in via errno. Fixes build
on NetBSD.
Diffstat (limited to 'graphics/xart/patches')
-rw-r--r--graphics/xart/patches/patch-aj15
1 files changed, 10 insertions, 5 deletions
diff --git a/graphics/xart/patches/patch-aj b/graphics/xart/patches/patch-aj
index 526a855dc06..9b401a5f6fd 100644
--- a/graphics/xart/patches/patch-aj
+++ b/graphics/xart/patches/patch-aj
@@ -1,4 +1,4 @@
-$NetBSD: patch-aj,v 1.1 2006/02/23 21:24:12 joerg Exp $
+$NetBSD: patch-aj,v 1.2 2006/03/01 14:40:34 joerg Exp $
--- rw/libpnmrw.c.orig 2006-02-23 21:15:15.000000000 +0000
+++ rw/libpnmrw.c
@@ -10,10 +10,15 @@ $NetBSD: patch-aj,v 1.1 2006/02/23 21:24:12 joerg Exp $
#include <stdio.h>
#include "libpnmrw.h"
-@@ -133,7 +134,6 @@ pm_perror(char *reason)
- #else
- extern char *sys_errlist[];
- #endif
+@@ -128,12 +129,6 @@ pm_freearray(char **its, int rows)
+ static void
+ pm_perror(char *reason)
+ {
+-#if defined(BSD4_4)
+- __const extern char *__const sys_errlist[];
+-#else
+- extern char *sys_errlist[];
+-#endif
- extern int errno;
char *e;