0001-uclibc.patch 1.1 KB

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