diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-29 12:43:51 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-29 12:43:51 +0000 |
commit | 0a422aa16378b214162cac8de7e028ad5e8b3631 (patch) | |
tree | 92f6c906ba004c02426001fdcd0cf8ef879bed61 /media-sound/sox/files | |
parent | Stable for HPPA (bug #357765). (diff) | |
download | gentoo-2-0a422aa16378b214162cac8de7e028ad5e8b3631.tar.gz gentoo-2-0a422aa16378b214162cac8de7e028ad5e8b3631.tar.bz2 gentoo-2-0a422aa16378b214162cac8de7e028ad5e8b3631.zip |
Fix compability with uClibc wrt #336123 by Erasmo Zubillaga.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/sox/files')
-rw-r--r-- | media-sound/sox/files/sox-14.3.2-uclibc.patch | 21 |
1 files changed, 21 insertions, 0 deletions
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 |