aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/location-geoclue.c')
-rw-r--r--src/location-geoclue.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/location-geoclue.c b/src/location-geoclue.c
index 6d33a59..5be651f 100644
--- a/src/location-geoclue.c
+++ b/src/location-geoclue.c
@@ -24,6 +24,9 @@
#include <geoclue/geoclue-master.h>
#include <geoclue/geoclue-position.h>
+#include <glib.h>
+#include <glib-object.h>
+
#include "location-geoclue.h"
#ifdef ENABLE_NLS
@@ -39,8 +42,10 @@
int
location_geoclue_init(location_geoclue_state_t *state)
{
+#if !GLIB_CHECK_VERSION(2, 35, 0)
g_type_init();
-
+#endif
+
state->position = NULL;
state->provider = NULL;
state->provider_path = NULL;