aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-01-19 15:26:28 +0000
committerWerner Koch <[email protected]>2016-01-19 15:26:28 +0000
commit8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f (patch)
treeffece5d89f3a8d5ad8ae7fd7465228f6504f1514
parentgpg: Add function print_further_info. (diff)
downloadgnupg-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.h6
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)