From 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Jan 2016 16:26:28 +0100 Subject: [PATCH] common: Add substitute code for libgpg-error < 1.22. * common/util.h (GPG_ERR_DB_CORRUPTED): New. --- common/util.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/util.h b/common/util.h index 5d94e93c0..6410b11d4 100644 --- a/common/util.h +++ b/common/util.h @@ -37,8 +37,10 @@ /* These error codes are used but not defined in the required libgpg-error version. Define them here. */ -/* None right now. (Use #if GPG_ERROR_VERSION_NUMBER < 0x011500 / * 1.21) */ - +/* Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21) */ +#if GPG_ERROR_VERSION_NUMBER < 0x011600 /* 1.22 */ +# define GPG_ERR_DB_CORRUPTED 218 +#endif /* gpg_error < 1.22 */ /* Hash function used with libksba. */ #define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)