[asterisk-dev] pthread_rwlock_timed* not available on OpenBSD (bug #14705)

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat Apr 18 08:09:56 CDT 2009


On Saturday 18 April 2009 05:48:40 Michiel van Baak wrote:
> Tilghman recently committed a fix for bug 14705.
> This patch uses pthread_rwlock_timed[(wr)|(rd)]lock
>
> Those functions are not available on OpenBSD.
> Now we have no version of asterisk that compiles anymore.
>
> Any idea how to fix this other then reverting this one revision (which
> makes asterisk compile fine again on OpenBSD)

Possibly.  We could do a detection for this function in autoconf and implement
a poor man's busy-loop using pthread_rwlock_trywrlock, assuming you have that
function.

-- 
Tilghman



More information about the asterisk-dev mailing list