<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- unix/posix_thread_os_hnd.c.orig	2017-12-21 12:55:45.000000000 -0600
+++ unix/posix_thread_os_hnd.c	2017-12-21 13:11:58.000000000 -0600
@@ -479,11 +479,14 @@
     if (rv)
 	return rv;
 
+#ifndef __APPLE__
+    /* Not supported on OSX */
     rv = pthread_condattr_setclock(&amp;attr, CLOCK_MONOTONIC);
     if (rv) {
 	pthread_condattr_destroy(&amp;attr);
 	return rv;
     }
+#endif
 
     cond = malloc(sizeof(*cond));
     if (!cond) {
@@ -536,7 +539,12 @@
     struct timeval  now;
     int             rv;
 
+#ifdef __APPLE__
+    /* OSX pthread_cond_timedwait() is based on REALTIME */
+    rv = handler-&gt;get_real_time(handler, &amp;now);
+#else
     rv = handler-&gt;get_monotonic_time(handler, &amp;now);
+#endif
     if (rv)
 	return rv;
 
</pre></body></html>