openbsd-ports/devel/glib2/patches/patch-glib_gmain_c
ajacoutot d5e540e2e4 Update to glib2-2.29.92 (2.30 coming in the next few days).
Committing now (along with upcoming atk, pango and gtk+3 updates) during
the hackathon where we have time to fix all the eventual fallout (bulk
running).

ok jasper@ robert@
2011-09-20 21:09:34 +00:00

19 lines
511 B
Plaintext

$OpenBSD: patch-glib_gmain_c,v 1.4 2011/09/20 21:09:34 ajacoutot Exp $
--- glib/gmain.c.orig Sun Sep 18 15:36:48 2011
+++ glib/gmain.c Mon Sep 19 23:28:57 2011
@@ -2054,10 +2054,14 @@ g_get_monotonic_time (void)
{
clockid_t best_clockid;
+#ifndef __OpenBSD__
if (sysconf (_SC_MONOTONIC_CLOCK) >= 0)
best_clockid = CLOCK_MONOTONIC;
else
best_clockid = CLOCK_REALTIME;
+#else
+ best_clockid = CLOCK_MONOTONIC;
+#endif
g_once_init_leave (&clockid, (gsize)best_clockid);
}
#endif