[network-manager-pptp] auth-dialog: fix build for glib < 2.32
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp] auth-dialog: fix build for glib < 2.32
- Date: Fri, 2 Mar 2012 18:02:42 +0000 (UTC)
commit ca6ddf3d659a7d91863e3ef8875dce418e56679e
Author: Dan Williams <dcbw redhat com>
Date: Fri Mar 2 12:01:34 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 4150463..0ee557f 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]