[network-manager-openswan] auth-dialog: fix build for glib < 2.32



commit ba90bcb404960edaa4dc08bc830d8f74c6a2f4d4
Author: Dan Williams <dcbw redhat com>
Date:   Fri Mar 2 12:15:53 2012 -0600

    auth-dialog: fix build for glib < 2.32

 auth-dialog/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index dcdc866..4feed06 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -101,6 +101,10 @@ keyfile_print_stdout (GKeyFile *keyfile)
 	g_free (data);
 }
 
+#if !GLIB_CHECK_VERSION(2,32,0)
+#define g_key_file_unref g_key_file_free
+#endif
+
 static gboolean
 get_secrets (const char *vpn_uuid,
              const char *vpn_name,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]