19 lines
555 B
Plaintext
19 lines
555 B
Plaintext
$OpenBSD: patch-gthread_gthread-posix_c,v 1.2 2011/05/24 09:10:23 ajacoutot Exp $
|
|
--- gthread/gthread-posix.c.orig Mon Sep 27 20:48:34 2010
|
|
+++ gthread/gthread-posix.c Tue May 24 10:49:23 2011
|
|
@@ -148,10 +148,14 @@ g_thread_impl_init(void)
|
|
#endif /* HAVE_PRIORITIES */
|
|
|
|
#ifdef USE_CLOCK_GETTIME
|
|
+# ifndef __OpenBSD__
|
|
if (sysconf (_SC_MONOTONIC_CLOCK) >= 0)
|
|
posix_clock = CLOCK_MONOTONIC;
|
|
else
|
|
posix_clock = CLOCK_REALTIME;
|
|
+# else
|
|
+ posix_clock = CLOCK_MONOTONIC;
|
|
+# endif
|
|
#endif
|
|
}
|
|
#endif /* _SC_THREAD_STACK_MIN || HAVE_PRIORITIES */
|