diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 328b099afe..6d9c667aed 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -48,6 +48,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include #include #include +#ifdef SOLARIS +#include +#endif #ifdef HAVE_ZAPTEL #include @@ -506,6 +509,9 @@ static void *monmp3thread(void *data) } } if (class->pseudofd > -1) { +#ifdef SOLARIS + thr_yield(); +#endif /* Pause some amount of time */ res = read(class->pseudofd, buf, sizeof(buf)); pthread_testcancel();