[Pkg-gnupg-commit] [gnupg2] 129/159: common: Add substitute code for libgpg-error < 1.22.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 27 13:24:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Jan 19 16:26:28 2016 +0100

    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 5d94e93..6410b11 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list