bd4a0dc3bd
on NetBSD.
25 lines
531 B
Text
25 lines
531 B
Text
$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];
|