Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.

2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c (g_thread_impl_init): Don't
        use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
        defined.  (#394150)



svn path=/branches/glib-2-12/; revision=5231
This commit is contained in:
Matthias Clasen
2007-01-08 13:00:16 +00:00
committed by Matthias Clasen
parent 61927a5f64
commit 731af51493
4 changed files with 68 additions and 4 deletions

View File

@@ -332,7 +332,8 @@ g_thread_init (GThreadFunctions* init)
init->thread_join &&
init->thread_exit &&
init->thread_set_priority &&
init->thread_self);
init->thread_self &&
init->gettime);
/* if somebody is calling g_thread_init (), it means that he wants to
* have thread support, so check this