AS_HELP_STRING([--disable-glib2],[Disable optional GLib 2 support]))
AS_IF([test "x$enable_glib2" != "xno"],
- [PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ], HAVE_GLIB20=1, HAVE_GLIB20=0)],
+ [PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.28.0 ], HAVE_GLIB20=1, HAVE_GLIB20=0)],
HAVE_GLIB20=0)
AS_IF([test "x$enable_glib2" = "xyes" && test "x$HAVE_GLIB20" = "x0"],
cdata.set('HAVE_GSETTINGS', 1)
endif
-glib_dep = dependency('glib-2.0', version : '>= 2.4.0', required: get_option('glib'))
+glib_dep = dependency('glib-2.0', version : '>= 2.28.0', required: get_option('glib'))
if glib_dep.found()
cdata.set('HAVE_GLIB', 1)
endif
return TRUE;
} else if (g->n_enabled_time_events) {
pa_time_event *t;
- GTimeVal now;
+ gint64 now;
struct timeval tvnow;
pa_usec_t usec;
t = find_next_time_event(g);
g_assert(t);
- g_get_current_time(&now);
- tvnow.tv_sec = now.tv_sec;
- tvnow.tv_usec = now.tv_usec;
+ now = g_get_real_time();
+ pa_timeval_store(&tvnow, now);
if (pa_timeval_cmp(&t->timeval, &tvnow) <= 0) {
*timeout = 0;
return TRUE;
else if (g->n_enabled_time_events) {
pa_time_event *t;
- GTimeVal now;
+ gint64 now;
struct timeval tvnow;
t = find_next_time_event(g);
g_assert(t);
- g_get_current_time(&now);
- tvnow.tv_sec = now.tv_sec;
- tvnow.tv_usec = now.tv_usec;
+ now = g_get_real_time();
+ pa_timeval_store(&tvnow, now);
if (pa_timeval_cmp(&t->timeval, &tvnow) <= 0)
return TRUE;
}
if (g->n_enabled_time_events) {
- GTimeVal now;
+ gint64 now;
struct timeval tvnow;
pa_time_event *t;
t = find_next_time_event(g);
g_assert(t);
- g_get_current_time(&now);
- tvnow.tv_sec = now.tv_sec;
- tvnow.tv_usec = now.tv_usec;
+ now = g_get_real_time();
+ pa_timeval_store(&tvnow, now);
if (pa_timeval_cmp(&t->timeval, &tvnow) <= 0) {