[network-manager-openvpn] auth-dialog: fix build for glib < 2.32
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] auth-dialog: fix build for glib < 2.32
- Date: Fri, 2 Mar 2012 20:10:36 +0000 (UTC)
commit 1210e73e88912db9f18cc2bd6048b82790305045
Author: Dan Williams <dcbw redhat com>
Date: Fri Mar 2 11:02:32 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 791f8d1..27cb1c2 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -103,6 +103,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_name,
const char *vpn_uuid,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]