summaryrefslogtreecommitdiff
path: root/multimedia/mpeg_encode/patches
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-09-23 14:29:50 +0000
committerjperkin <jperkin>2014-09-23 14:29:50 +0000
commit913034442904139e354fea19fadc1b37d7006b69 (patch)
tree734aed2750fe436aa35a11acbbc5c3232f76052d /multimedia/mpeg_encode/patches
parent980de071c84b50462bde0dcb7a494ed888b437aa (diff)
downloadpkgsrc-913034442904139e354fea19fadc1b37d7006b69.tar.gz
Fix build on SunOS (socket libraries, use strerror()).
Diffstat (limited to 'multimedia/mpeg_encode/patches')
-rw-r--r--multimedia/mpeg_encode/patches/patch-ac13
1 files changed, 10 insertions, 3 deletions
diff --git a/multimedia/mpeg_encode/patches/patch-ac b/multimedia/mpeg_encode/patches/patch-ac
index 72840c4160f..d8094a75f5a 100644
--- a/multimedia/mpeg_encode/patches/patch-ac
+++ b/multimedia/mpeg_encode/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 2006/01/03 14:20:41 joerg Exp $
+$NetBSD: patch-ac,v 1.3 2014/09/23 14:29:50 jperkin Exp $
--- libpnmrw.c.orig 1995-08-16 22:24:26.000000000 +0000
+++ libpnmrw.c
@@ -10,14 +10,21 @@ $NetBSD: patch-ac,v 1.2 2006/01/03 14:20:41 joerg Exp $
#include "libpnmrw.h"
/* if don't have string.h, try strings.h */
-@@ -126,8 +127,9 @@ static void
+@@ -126,11 +127,16 @@ static void
pm_perror( reason )
char* reason;
{
-+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__)
++#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__sun)
extern char* sys_errlist[];
- extern int errno;
+#endif
char* e;
++#ifdef __sun
++ e = strerror(errno);
++#else
e = sys_errlist[errno];
++#endif
+
+ if ( reason != 0 && reason[0] != '\0' )
+ (void) fprintf( stderr, "%s: %s - %s\n", progname, reason, e );