diff options
author | joerg <joerg> | 2006-03-01 14:40:34 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-03-01 14:40:34 +0000 |
commit | 0612af1048e54f1a18eb3bbaa2b766296af0e796 (patch) | |
tree | 2c3afc4a64988da16015c83da386d112d1981230 /graphics/xart/patches | |
parent | 555b089c0384e3c2a38ab8b4ccf16e61d943c253 (diff) | |
download | pkgsrc-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-aj | 15 |
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; |