All pastes #186139 Raw Edit

Stuff

public text v1 · immutable
#186139 ·published 2006-09-29 16:28 UTC
rendered paste body
Index: corelib/timer.c
===================================================================
--- corelib/timer.c     (revision 1878)
+++ corelib/timer.c     (working copy)
@@ -69,8 +69,10 @@
                t->interval = interval;

        /* Check if the timer has a good enough resolution */
+#ifdef CLOCK_MONOTONIC
        st = clock_getres(CLOCK_MONOTONIC, &res);
        if (st == -1)
+#endif
                st = clock_getres(CLOCK_REALTIME, &res);
        if (st == -1) {
                opbx_log(LOG_WARNING, "Couldn't get resolution of "