anaconda: fix build on fc20

This commit is contained in:
Marek Marczykowski-Górecki 2014-04-02 19:33:10 +02:00
parent 4925b42a7a
commit 383f9fb3df

View File

@ -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)