diff --git a/audio.c b/audio.c index 54f6ad0..0b4ff61 100644 --- a/audio.c +++ b/audio.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #define _(str) gettext(str) ///< gettext shortcut @@ -1545,7 +1546,7 @@ static int OssThread(void) if (err < 0) { // underrun error return -1; } - pthread_yield(); + sched_yield(); usleep(OssFragmentTime * 1000); // let fill/empty the buffers return 0; }