summaryrefslogtreecommitdiff
path: root/multimedia/mpeg_encode/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mpeg_encode/patches/patch-ac')
-rw-r--r--multimedia/mpeg_encode/patches/patch-ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/multimedia/mpeg_encode/patches/patch-ac b/multimedia/mpeg_encode/patches/patch-ac
new file mode 100644
index 00000000000..87286cc1460
--- /dev/null
+++ b/multimedia/mpeg_encode/patches/patch-ac
@@ -0,0 +1,25 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $
+
+--- libpnmrw.c.orig Thu Aug 17 00:24:26 1995
++++ libpnmrw.c
+@@ -28,6 +28,9 @@
+ #endif
+
+ #include <stdio.h>
++#ifdef __NetBSD__
++# include <errno.h>
++#endif
+ #include "libpnmrw.h"
+
+ /* if don't have string.h, try strings.h */
+@@ -126,8 +129,10 @@
+ pm_perror( reason )
+ char* reason;
+ {
++#ifndef __NetBSD__
+ extern char* sys_errlist[];
+ extern int errno;
++#endif
+ char* e;
+
+ e = sys_errlist[errno];