summaryrefslogtreecommitdiff
path: root/gthread/gthread-impl.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-01-08 05:13:15 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-01-08 05:13:15 +0000
commit541462ab1e942ea02dd7d2e6dbcf0d02ad2c88de (patch)
tree1dd9e0b75d89e5fbf2de609bb335d85cc9d04ab7 /gthread/gthread-impl.c
parent8a688f12f05a0a5e70570a6af6efdc24f52cb53f (diff)
Don't link glib against libpthread. (#393812)
2007-01-07 Matthias Clasen <mclasen@redhat.com> Don't link glib against libpthread. (#393812) * configure.in: Link gthread against librt, not glib itself. * glib/gthread.h: * glib/gthread.c: Add a new thread function, gettime. * glib/gtimer.c: Use gettime instead of directly working with the various system interfaces. * gthread/gthread-impl.c: * gthread/gthread-posix.c: * gthread/gthread-win32.c: Implement gettime. svn path=/trunk/; revision=5227
Diffstat (limited to 'gthread/gthread-impl.c')
-rw-r--r--gthread/gthread-impl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gthread/gthread-impl.c b/gthread/gthread-impl.c
index 77615cec9..d8f26d4c5 100644
--- a/gthread/gthread-impl.c
+++ b/gthread/gthread-impl.c
@@ -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