aboutsummaryrefslogtreecommitdiffstats
path: root/community/vdr/softhddevice-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/vdr/softhddevice-musl.patch')
-rw-r--r--community/vdr/softhddevice-musl.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/vdr/softhddevice-musl.patch b/community/vdr/softhddevice-musl.patch
new file mode 100644
index 0000000000..8564ef5e72
--- /dev/null
+++ b/community/vdr/softhddevice-musl.patch
@@ -0,0 +1,19 @@
+--- a/PLUGINS/src/softhddevice/audio.c
++++ b/PLUGINS/src/softhddevice/audio.c
+@@ -48,6 +48,7 @@
+ #include <inttypes.h>
+ #include <string.h>
+ #include <math.h>
++#include <sched.h>
+
+ #include <libintl.h>
+ #define _(str) gettext(str) ///< gettext shortcut
+@@ -1584,7 +1585,7 @@
+ if (err < 0) { // underrun error
+ return -1;
+ }
+- pthread_yield();
++ sched_yield();
+ usleep(OssFragmentTime * 1000); // let fill/empty the buffers
+ return 0;
+ }