27 lines
572 B
Diff
27 lines
572 B
Diff
|
diff -ruN sox-14.0.1.orig/src/sox.c sox-14.0.1/src/sox.c
|
||
|
--- sox-14.0.1.orig/src/sox.c 2008-01-28 17:47:19.000000000 -0500
|
||
|
+++ sox-14.0.1/src/sox.c 2008-12-01 05:49:29.000000000 -0500
|
||
|
@@ -62,6 +62,7 @@
|
||
|
#define TIME_FRAC 1e3
|
||
|
#endif
|
||
|
|
||
|
+#include <linux/version.h>
|
||
|
|
||
|
/* argv[0] options */
|
||
|
|
||
|
@@ -377,7 +378,13 @@
|
||
|
if (sox_find_format("ossdsp", sox_false))
|
||
|
{
|
||
|
f->filetype = "ossdsp";
|
||
|
+
|
||
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
|
||
|
+ f->filename = xstrdup("/dev/sound/dsp");
|
||
|
+#else
|
||
|
f->filename = xstrdup("/dev/dsp");
|
||
|
+#endif
|
||
|
+
|
||
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
|