diff options
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index e8410d95b..6b97445cf 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -48,6 +48,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <dirent.h> #include <unistd.h> #include <sys/ioctl.h> +#ifdef SOLARIS +#include <thread.h> +#endif #include "asterisk/zapata.h" @@ -504,6 +507,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(); |