aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)