aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 11:05:58 +0200
committerMax Kellermann <max@duempel.org>2013-08-10 11:52:31 +0200
commitcbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2 (patch)
tree96e172982fa672dcb7762c34a6c8591d043f035f /src
parent371d635da82067888d0f0aedc340f5a25c38a635 (diff)
downloadmpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.tar.gz
mpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.tar.xz
mpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.zip
glib_compat.h: use monotonic_clock_us() in g_source_get_time()
Diffstat (limited to '')
-rw-r--r--src/glib_compat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glib_compat.h b/src/glib_compat.h
index 20cf2f614..5277d317e 100644
--- a/src/glib_compat.h
+++ b/src/glib_compat.h
@@ -30,12 +30,12 @@
#if !GLIB_CHECK_VERSION(2,28,0)
+#include "system/clock.h"
+
static inline gint64
g_source_get_time(GSource *source)
{
- GTimeVal tv;
- g_source_get_current_time(source, &tv);
- return tv.tv_sec * 1000000 + tv.tv_usec;
+ return monotonic_clock_us();
}
#endif