3 // On Mac OS X, supress system definition of struct timespec
5 #define _STRUCT_TIMESPEC struct timespec
10 /* Can only implement if timeouts are supported.
12 * Namely, Mac OS X does not implement timeouts
14 #if defined(_POSIX_TIMEOUTS) && (_POSIX_TIMEOUTS - 200112L) >= 0L
15 int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
17 switch(pthread_mutex_timedlock(mtx, ts)) {
31 #include <_PDCLIB_test.h>