From 0a422aa16378b214162cac8de7e028ad5e8b3631 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Tue, 29 Mar 2011 12:43:51 +0000 Subject: Fix compability with uClibc wrt #336123 by Erasmo Zubillaga. (Portage version: 2.2.0_alpha29/cvs/Linux x86_64) --- media-sound/sox/files/sox-14.3.2-uclibc.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 media-sound/sox/files/sox-14.3.2-uclibc.patch (limited to 'media-sound/sox/files') diff --git a/media-sound/sox/files/sox-14.3.2-uclibc.patch b/media-sound/sox/files/sox-14.3.2-uclibc.patch new file mode 100644 index 000000000000..cc07fc012530 --- /dev/null +++ b/media-sound/sox/files/sox-14.3.2-uclibc.patch @@ -0,0 +1,21 @@ +http://bugs.gentoo.org/show_bug.cgi?id=336123 + +--- src/formats.c ++++ src/formats.c +@@ -399,7 +399,7 @@ + #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__ + fp->_p -= AUTO_DETECT_SIZE; + fp->_r += AUTO_DETECT_SIZE; +-#elif defined __GLIBC__ ++#elif defined __GLIBC__ && ! defined __UCLIBC__ + fp->_IO_read_ptr = fp->_IO_read_base; + #elif defined _MSC_VER || defined __MINGW_H || defined _ISO_STDIO_ISO_H + fp->_ptr = fp->_base; +@@ -407,7 +407,6 @@ + /* To fix this #error, either simply remove the #error line and live without + * file-type detection with pipes, or add support for your compiler in the + * lines above. Test with cat monkey.au | ./sox --info - */ +- #error FIX NEEDED HERE + #define NO_REWIND_PIPE + (void)fp; + #endif -- cgit v1.2.3-65-gdbad