Created attachment 66527 [details] [review]
The current pthread_cond_timedwait check only checks for pthread_cond_timedwait in libpthread if it is found in libc but does not if not fouund in libc breaking most OS's. The current behavior makes no sense. The attached patch moves the fallback check from the "if found" field of AC_CHECK_FUNC() to the "if not found" field.
There's a more comprehensive version awaiting review on Bug #47239. Could you review and test that, please?
(In reply to comment #0)
> breaking most OS's
What (presumably non-Linux) OS do you have in mind? Which library implements each of pthread_cond_timedwait, pthread_mutexattr_init and pthread_mutexattr_settype on your OS?
*** This bug has been marked as a duplicate of bug 47239 ***
OpenBSD, although this is the case for other *BSD OS's and POSIX like OS's. The library being libpthread.