common: Add substitute code for libgpg-error < 1.22.

* common/util.h (GPG_ERR_DB_CORRUPTED): New.
This commit is contained in:
Werner Koch 2016-01-19 16:26:28 +01:00
parent d96e76d15f
commit 8b7f64f9df
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 4 additions and 2 deletions

View File

@ -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)