diff options
author | joerg <joerg> | 2006-01-03 14:20:41 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-03 14:20:41 +0000 |
commit | 9ae7095189d030e602e019724da97d0d1ecce3fe (patch) | |
tree | ff8d85147d3d5acba10f677cfe7f9074465ae77c /multimedia/mpeg_encode/patches | |
parent | 85a000a4a8d07d2c263f770183d19a749713f5dc (diff) | |
download | pkgsrc-9ae7095189d030e602e019724da97d0d1ecce3fe.tar.gz |
DragonFly and FreeBSD have sys_errlst declared as well. Always use
ernro.h.
Diffstat (limited to 'multimedia/mpeg_encode/patches')
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ac | 16 | ||||
-rw-r--r-- | multimedia/mpeg_encode/patches/patch-ao | 24 |
2 files changed, 31 insertions, 9 deletions
diff --git a/multimedia/mpeg_encode/patches/patch-ac b/multimedia/mpeg_encode/patches/patch-ac index 87286cc1460..72840c4160f 100644 --- a/multimedia/mpeg_encode/patches/patch-ac +++ b/multimedia/mpeg_encode/patches/patch-ac @@ -1,24 +1,22 @@ -$NetBSD: patch-ac,v 1.1.1.1 2004/02/24 21:47:25 jmmv Exp $ +$NetBSD: patch-ac,v 1.2 2006/01/03 14:20:41 joerg Exp $ ---- libpnmrw.c.orig Thu Aug 17 00:24:26 1995 +--- libpnmrw.c.orig 1995-08-16 22:24:26.000000000 +0000 +++ libpnmrw.c -@@ -28,6 +28,9 @@ +@@ -28,6 +28,7 @@ #endif #include <stdio.h> -+#ifdef __NetBSD__ -+# include <errno.h> -+#endif ++#include <errno.h> #include "libpnmrw.h" /* if don't have string.h, try strings.h */ -@@ -126,8 +129,10 @@ +@@ -126,8 +127,9 @@ static void pm_perror( reason ) char* reason; { -+#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__) extern char* sys_errlist[]; - extern int errno; +- extern int errno; +#endif char* e; diff --git a/multimedia/mpeg_encode/patches/patch-ao b/multimedia/mpeg_encode/patches/patch-ao new file mode 100644 index 00000000000..249092bfb32 --- /dev/null +++ b/multimedia/mpeg_encode/patches/patch-ao @@ -0,0 +1,24 @@ +$NetBSD: patch-ao,v 1.1 2006/01/03 14:20:41 joerg Exp $ + +--- headers/libpnmrw.h.orig 2006-01-03 14:15:10.000000000 +0000 ++++ headers/libpnmrw.h +@@ -13,18 +13,7 @@ + #ifndef _PNMRW_H_ + #define _PNMRW_H_ + +-/* CONFIGURE: On some systems, malloc.h doesn't declare these, so we have +-** to do it. On other systems, for example HP/UX, it declares them +-** incompatibly. And some systems, for example Dynix, don't have a +-** malloc.h at all. A sad situation. If you have compilation problems +-** that point here, feel free to tweak or remove these declarations. +-*/ +-#include <malloc.h> +-#if !defined(sco) && !defined(sgi) && !defined(IRIX) +-extern char* malloc(); +-#endif +-/* End of configurable definitions. */ +- ++#include <stdlib.h> + + /* Definitions to make PBMPLUS work with either ANSI C or C Classic. */ + |