From 383f9fb3dfae63773ea0642f6e692a8ef3c9eda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 2 Apr 2014 19:33:10 +0200 Subject: [PATCH] anaconda: fix build on fc20 --- anaconda/pyanaconda/isys/iface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/anaconda/pyanaconda/isys/iface.c b/anaconda/pyanaconda/isys/iface.c index af64264..a37237c 100644 --- a/anaconda/pyanaconda/isys/iface.c +++ b/anaconda/pyanaconda/isys/iface.c @@ -178,7 +178,9 @@ char *iface_ip2str(char *ifname, int family) { return NULL; } +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init(); +#endif client = nm_client_new(); if (!client) { @@ -420,7 +422,9 @@ gboolean is_nm_connected(void) { NMState state; NMClient *client = NULL; +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init(); +#endif client = nm_client_new(); if (!client) @@ -440,7 +444,9 @@ gboolean is_nm_running(void) { gboolean running; NMClient *client = NULL; +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init(); +#endif client = nm_client_new(); if (!client) @@ -456,7 +462,9 @@ gboolean is_iface_activated(char * ifname) { NMClient *client = NULL; const GPtrArray *devices; +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init(); +#endif client = nm_client_new(); if (!client)