blob: 9b401a5f6fd26949963563250d9f0068043ba9d4 (
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
|
$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
@@ -32,6 +32,7 @@
/* #define MSDOS */
#endif
+#include <errno.h>
#include <stdio.h>
#include "libpnmrw.h"
@@ -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;
e = sys_errlist[errno];
|