[balsa/gtk4] libbalsa-gpgme: Build with GLib < 2.70



commit 5c5f5f79046183da074b55b2c0a7d6cb82c40053
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jul 20 12:18:08 2021 -0400

    libbalsa-gpgme: Build with GLib < 2.70

 libbalsa/libbalsa-gpgme.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libbalsa/libbalsa-gpgme.c b/libbalsa/libbalsa-gpgme.c
index f664623a4..8d1484a19 100644
--- a/libbalsa/libbalsa-gpgme.c
+++ b/libbalsa/libbalsa-gpgme.c
@@ -1201,7 +1201,11 @@ gpg_check_capas(const gchar *gpg_path, const gchar *version)
        /* check for the "--export-filter keep-uid=..." option */
        if (g_spawn_sync(NULL, gpg_args, NULL, G_SPAWN_STDOUT_TO_DEV_NULL + G_SPAWN_STDERR_TO_DEV_NULL, NULL, 
NULL, NULL, NULL,
                                         &exit_status, NULL)) {
+#if       GLIB_CHECK_VERSION(2, 70, 0)
                gpg_capas.export_filter_uid = g_spawn_check_wait_status(exit_status, NULL);
+#else  /* GLIB_CHECK_VERSION(2, 70, 0) */
+               gpg_capas.export_filter_uid = g_spawn_check_exit_status(exit_status, NULL);
+#endif /* GLIB_CHECK_VERSION(2, 70, 0) */
        }
        g_debug("%s supports '--export-filter keep-uid=...': %d", gpg_path, gpg_capas.export_filter_uid);
 


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