aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/glib-deprecated.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/glib-deprecated.diff')
-rw-r--r--debian/patches/glib-deprecated.diff43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/patches/glib-deprecated.diff b/debian/patches/glib-deprecated.diff
new file mode 100644
index 0000000..c6e51e5
--- /dev/null
+++ b/debian/patches/glib-deprecated.diff
@@ -0,0 +1,43 @@
+Index: b/src/main.c
+===================================================================
+--- a/src/main.c
++++ b/src/main.c
+@@ -387,8 +387,10 @@
+ {
+ GError * error = NULL;
+
++#if !GLIB_CHECK_VERSION (2, 35, 1)
+ /* Init the GTypes */
+ g_type_init();
++#endif
+
+ /* Setup i18n */
+ setlocale (LC_ALL, "");
+Index: b/tests/dbus-interface.c
+===================================================================
+--- a/tests/dbus-interface.c
++++ b/tests/dbus-interface.c
+@@ -571,7 +571,9 @@
+ gint
+ main (gint argc, gchar * argv[])
+ {
++#if !GLIB_CHECK_VERSION (2, 35, 1)
+ g_type_init();
++#endif
+ g_test_init(&argc, &argv, NULL);
+
+ /* Test suites */
+Index: b/tests/server-test.c
+===================================================================
+--- a/tests/server-test.c
++++ b/tests/server-test.c
+@@ -270,7 +270,9 @@
+ gint
+ main (gint argc, gchar * argv[])
+ {
++#if !GLIB_CHECK_VERSION (2, 35, 1)
+ g_type_init();
++#endif
+ g_test_init(&argc, &argv, NULL);
+
+ /* Test suites */