[balsa] fix build error with glib < 2.70



commit ea34d8f38c27122a5aa4c231f95aca594f55ea66
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Tue May 17 21:29:50 2022 +0200

    fix build error with glib < 2.70
    
    g_spawn_check_exit_status() was renamed to g_spawn_check_wait_status()
    in glib 2.70; use conditional code to enable building on (inter alia)
    Debian Stable (Bullseye).
    
    Signed-off-by: Albrecht Dreß <albrecht dress netcologne de>

 src/sendmsg-window.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index e6edd43dd..a05360db5 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -689,7 +689,11 @@ edit_with_gnome_check(GPid     pid,
 
     g_free(data_real);
 
+#if GLIB_CHECK_VERSION(2, 70, 0)
     if (!g_spawn_check_wait_status(wait_status, &error)) {
+#else
+    if (!g_spawn_check_exit_status(wait_status, &error)) {
+#endif
         balsa_information_parented(GTK_WINDOW(bsmsg->window),
                                    LIBBALSA_INFORMATION_WARNING,
                                    _("Editing failed: %s"),


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