diff options
author | Werner Koch <[email protected]> | 2016-01-19 15:26:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-01-19 15:26:28 +0000 |
commit | 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f (patch) | |
tree | ffece5d89f3a8d5ad8ae7fd7465228f6504f1514 | |
parent | gpg: Add function print_further_info. (diff) | |
download | gnupg-8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f.tar.gz gnupg-8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f.zip |
common: Add substitute code for libgpg-error < 1.22.
* common/util.h (GPG_ERR_DB_CORRUPTED): New.
-rw-r--r-- | common/util.h | 6 |
1 files 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) |