shithub: sox

Download patch

ref: 4175869d978761bf887838b07a03d0c18367f69d
parent: 9cb92dc18e0dc1633fc33b8c41fcdfcdad56da7e
author: cbagwell <cbagwell>
date: Tue Apr 7 22:17:03 EDT 2009

Get seeking hack working on Mac OSX.

--- a/src/formats.c
+++ b/src/formats.c
@@ -392,7 +392,7 @@
  * Works by resetting the FILE buffer pointer */
 static void UNUSED rewind_pipe(FILE * fp)
 {
-#if defined _NEWLIB_VERSION
+#if defined _NEWLIB_VERSION || defined __APPLE__
   fp->_p -= AUTO_DETECT_SIZE;
   fp->_r += AUTO_DETECT_SIZE;
 #elif defined __GLIBC__