summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-04-29 11:46:59 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-04-29 11:46:59 +0000
commit01a7ca3ab41c5b7c16893f63a44b982a737f2cd1 (patch)
treee8aaa48c2ce3047dfc6071d8acad2be44f68123a /media-sound/sox/files
parentMove glx-define-prototype.patch and libpng14.patch to patchset tarball. (diff)
downloadgentoo-2-01a7ca3ab41c5b7c16893f63a44b982a737f2cd1.tar.gz
gentoo-2-01a7ca3ab41c5b7c16893f63a44b982a737f2cd1.tar.bz2
gentoo-2-01a7ca3ab41c5b7c16893f63a44b982a737f2cd1.zip
Fix building with USE="-mad" wrt #317595 by Sergiy Borodych.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/sox/files')
-rw-r--r--media-sound/sox/files/sox-14.3.1-nomad.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-sound/sox/files/sox-14.3.1-nomad.patch b/media-sound/sox/files/sox-14.3.1-nomad.patch
new file mode 100644
index 000000000000..7bcad4f4390d
--- /dev/null
+++ b/media-sound/sox/files/sox-14.3.1-nomad.patch
@@ -0,0 +1,15 @@
+http://bugs.gentoo.org/317595
+
+--- src/mp3.c
++++ src/mp3.c
+@@ -56,8 +56,10 @@
+ * Sidestep the issue by defining our own mad_timer_zero. This is needed because
+ * mad_timer_zero is used in some of the mad.h macros.
+ */
++#ifdef HAVE_MAD_H
+ #define mad_timer_zero mad_timer_zero_stub
+ static mad_timer_t const mad_timer_zero_stub = {0, 0};
++#endif
+
+ #define MAXFRAMESIZE 2880
+ #define ID3PADDING 128