1*4882a593SmuzhiyunMake SoX support uclibc-based toolchains, from: 2*4882a593Smuzhiyunhttp://sourceforge.net/p/sox/bugs/179/ 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunSigned-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunIndex: sox-14.4.1/src/formats.c 7*4882a593Smuzhiyun=================================================================== 8*4882a593Smuzhiyun--- sox-14.4.1.orig/src/formats.c 9*4882a593Smuzhiyun+++ sox-14.4.1/src/formats.c 10*4882a593Smuzhiyun@@ -409,7 +409,7 @@ static void UNUSED rewind_pipe(FILE * fp 11*4882a593Smuzhiyun #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__ 12*4882a593Smuzhiyun fp->_p -= PIPE_AUTO_DETECT_SIZE; 13*4882a593Smuzhiyun fp->_r += PIPE_AUTO_DETECT_SIZE; 14*4882a593Smuzhiyun-#elif defined __GLIBC__ 15*4882a593Smuzhiyun+#elif defined __GLIBC__ && ! defined __UCLIBC__ 16*4882a593Smuzhiyun fp->_IO_read_ptr = fp->_IO_read_base; 17*4882a593Smuzhiyun #elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined _ISO_STDIO_ISO_H 18*4882a593Smuzhiyun fp->_ptr = fp->_base; 19*4882a593Smuzhiyun@@ -417,7 +417,6 @@ static void UNUSED rewind_pipe(FILE * fp 20*4882a593Smuzhiyun /* To fix this #error, either simply remove the #error line and live without 21*4882a593Smuzhiyun * file-type detection with pipes, or add support for your compiler in the 22*4882a593Smuzhiyun * lines above. Test with cat monkey.wav | ./sox --info - */ 23*4882a593Smuzhiyun- #error FIX NEEDED HERE 24*4882a593Smuzhiyun #define NO_REWIND_PIPE 25*4882a593Smuzhiyun (void)fp; 26*4882a593Smuzhiyun #endif 27