summaryrefslogtreecommitdiff
path: root/audio/lame/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-01-29 23:05:51 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-01-29 23:05:51 +0000
commit2021b175d7f869ce55fd62b93d354bb8d3eb4455 (patch)
tree53b30a2b26b76cca18097e3385986b409202dff0 /audio/lame/patches
parent5dd1eb7fd834a4771c59eeabdad2af76faf81988 (diff)
downloadpkgsrc-2021b175d7f869ce55fd62b93d354bb8d3eb4455.tar.gz
fix a namespace problem on solaris
Diffstat (limited to 'audio/lame/patches')
-rw-r--r--audio/lame/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/lame/patches/patch-aa b/audio/lame/patches/patch-aa
new file mode 100644
index 00000000000..066724e8ee6
--- /dev/null
+++ b/audio/lame/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.14 2007/01/29 23:05:51 dmcmahill Exp $
+
+name space collision with a #define in /usr/include/term.h on solaris-2.9
+
+--- frontend/brhist.c.orig 2006-09-24 09:53:31.000000000 -0400
++++ frontend/brhist.c
+@@ -429,7 +429,7 @@ stats_line(double *stat)
+ void
+ brhist_disp(const lame_global_flags * gf)
+ {
+- int i, lines = 0;
++ int i, mylines = 0;
+ int br_hist[BRHIST_WIDTH]; /* how often a frame size was used */
+ int br_sm_hist[BRHIST_WIDTH][4]; /* how often a special frame size/stereo mode commbination was used */
+ int st_mode[4];
+@@ -456,13 +456,13 @@ brhist_disp(const lame_global_flags * gf
+ if (most_often < br_hist[i])
+ most_often = br_hist[i];
+ if (br_hist[i])
+- ++lines;
++ ++mylines;
+ }
+
+ for (i = 0; i < BRHIST_WIDTH; i++) {
+ int show = br_hist[i];
+ #ifdef RH_HIST
+- show = show && (lines > 1);
++ show = show && (mylines > 1);
+ #endif
+ if (show
+ || (i >= brhist.vbr_bitrate_min_index