shithub: sox

Download patch

ref: 852cad9e1b42d415cd005f9c27c941542da56796
parent: a8747b805847ead359b3cdb36daf667aab7b0f69
author: robs <robs>
date: Sat Feb 7 12:41:48 EST 2009

fix newlib detection

--- a/src/formats.c
+++ b/src/formats.c
@@ -442,7 +442,7 @@
     else if (!(ft->handler.flags & SOX_FILE_NOSTDIO) &&
         input_bufsiz >= AUTO_DETECT_SIZE) { /* Hack to rewind pipes */
       filetype = auto_detect_format(ft, lsx_find_file_extension(path));
-#if defined _LIBC
+#if defined _NEWLIB_VERSION
       ft->fp->_p -= AUTO_DETECT_SIZE;
       ft->fp->_r += AUTO_DETECT_SIZE;
 #elif defined __GLIBC__