summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-12-15 07:05:13 +0100
committerNIIBE Yutaka <[email protected]>2025-12-15 07:05:13 +0100
commit77b9e1de7d7614e8e7eb79f507a1de292efb30a7 (patch)
tree169cdbf2a06342609c5ae71237df6e6e32eaf996
parentFix portability for the use of the assuan types. (diff)
downloadgpgme-77b9e1de7d7614e8e7eb79f507a1de292efb30a7.tar.gz
gpgme-77b9e1de7d7614e8e7eb79f507a1de292efb30a7.zip
Fix build with libassuan 2.
* src/util.h (assuan_pid_t): Typedef if not available. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index ea92440a..d805373a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -213,6 +213,10 @@ const char *_gpgme_get_w32spawn_path (void);
#include <assuan.h>
+#if ASSUAN_VERSION_NUMBER < 0x030000
+typedef pid_t assuan_pid_t;
+#endif
+
/* System hooks for assuan integration. */
extern struct assuan_system_hooks _gpgme_assuan_system_hooks;
extern struct assuan_malloc_hooks _gpgme_assuan_malloc_hooks;