From 8fdcedaf4c0cbccecd2292bea63a677f3eaad6c4 Mon Sep 17 00:00:00 2001 From: automerge Date: Tue, 23 Jan 2007 02:12:58 +0000 Subject: automerge commit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@51557 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_musiconhold.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'res') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 746fa2d06..04e4a39ee 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -45,6 +45,9 @@ #endif #include #include +#ifdef SOLARIS +#include +#endif #include "asterisk.h" @@ -508,6 +511,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(); -- cgit v1.2.3