diff --git a/audio.c b/audio.c index 0a16054..2b1683c 100644 --- a/audio.c +++ b/audio.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #define _(str) gettext(str) ///< gettext shortcut @@ -1584,7 +1585,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; }