blob: 72840c4160f79eba616f850fab376294720e6620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ac,v 1.2 2006/01/03 14:20:41 joerg Exp $
--- libpnmrw.c.orig 1995-08-16 22:24:26.000000000 +0000
+++ libpnmrw.c
@@ -28,6 +28,7 @@
#endif
#include <stdio.h>
+#include <errno.h>
#include "libpnmrw.h"
/* if don't have string.h, try strings.h */
@@ -126,8 +127,9 @@ static void
pm_perror( reason )
char* reason;
{
+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__)
extern char* sys_errlist[];
- extern int errno;
+#endif
char* e;
e = sys_errlist[errno];
|