|
|
8977f8 |
From 7a9ae6219c5a114edcfd1ccb5db04568e47c94aa Mon Sep 17 00:00:00 2001
|
|
|
8977f8 |
From: Frediano Ziglio <freddy77@gmail.com>
|
|
|
8977f8 |
Date: Mon, 11 May 2020 10:47:49 +0100
|
|
|
8977f8 |
Subject: [PATCH 4/4] Fix possible compile error using former GLib2 version
|
|
|
8977f8 |
|
|
|
8977f8 |
We require GLib 2.50 but G_SOURCE_FUNC was introduced in version
|
|
|
8977f8 |
2.58. Do the conversion instead of using G_SOURCE_FUNC macro.
|
|
|
8977f8 |
|
|
|
8977f8 |
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
|
|
|
8977f8 |
Acked-by: Victor Toso <victortoso@redhat.com>
|
|
|
8977f8 |
(cherry picked from commit d0b5f80adaef757ebfa81d1ab1c6561697243dc9)
|
|
|
8977f8 |
---
|
|
|
8977f8 |
src/vdagent-connection.c | 2 +-
|
|
|
8977f8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
8977f8 |
|
|
|
8977f8 |
diff --git a/src/vdagent-connection.c b/src/vdagent-connection.c
|
|
|
8977f8 |
index 8c023e2..c085d81 100644
|
|
|
8977f8 |
--- a/src/vdagent-connection.c
|
|
|
8977f8 |
+++ b/src/vdagent-connection.c
|
|
|
8977f8 |
@@ -231,7 +231,7 @@ void vdagent_connection_write(VDAgentConnection *self,
|
|
|
8977f8 |
out = G_POLLABLE_OUTPUT_STREAM(g_io_stream_get_output_stream(priv->io_stream));
|
|
|
8977f8 |
|
|
|
8977f8 |
source = g_pollable_output_stream_create_source(out, priv->cancellable);
|
|
|
8977f8 |
- g_source_set_callback(source, G_SOURCE_FUNC(out_stream_ready_cb),
|
|
|
8977f8 |
+ g_source_set_callback(source, (GSourceFunc) out_stream_ready_cb,
|
|
|
8977f8 |
g_object_ref(self), NULL);
|
|
|
8977f8 |
g_source_attach(source, NULL);
|
|
|
8977f8 |
g_source_unref(source);
|
|
|
8977f8 |
--
|
|
|
8977f8 |
2.26.1
|
|
|
8977f8 |
|