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