--- a/third_party/patches/sox.patch.orig +++ b/third_party/patches/sox.patch @@ -15,3 +15,37 @@ + return sox_false; return ((st.st_mode & S_IFMT) == S_IFREG); } + +Do not #error, just define NO_REWIND_PIPE +--- sox/src/formats.c ++++ sox/src/formats.c +@@ -422,7 +426,7 @@ + /* 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.wav | ./sox --info - */ +- #error FIX NEEDED HERE ++ // #error FIX NEEDED HERE + #define NO_REWIND_PIPE + (void)fp; + #endif +--- sox/CMakeLists.txt.orig ++++ sox/CMakeLists.txt +@@ -76,7 +76,7 @@ + check_include_files("byteswap.h" HAVE_BYTESWAP_H) + check_include_files("inttypes.h" HAVE_INTTYPES_H) + check_include_files("fenv.h" HAVE_FENV_H) +-check_include_files("glob.h" HAVE_GLOB_H) ++#check_include_files("glob.h" HAVE_GLOB_H) + check_include_files("io.h" HAVE_IO_H) + #check_include_files("ltdl.h" HAVE_LTDL_H) # no plug-ins as yet + check_include_files("stdint.h" HAVE_STDINT_H) +--- sox/configure ++++ sox/configure +@@ -13000,7 +13000,7 @@ + + fi + +-for ac_header in fcntl.h unistd.h byteswap.h sys/stat.h sys/time.h sys/timeb.h sys/types.h sys/utsname.h termios.h glob.h fenv.h ++for ac_header in fcntl.h unistd.h byteswap.h sys/stat.h sys/time.h sys/timeb.h sys/types.h sys/utsname.h termios.h fenv.h + do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"