diff options
author | Werner Koch <[email protected]> | 2024-08-08 13:57:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-08-08 13:57:23 +0000 |
commit | 62bd291dcc6d3120a28a2a2ce1bf1bd7c2b750dd (patch) | |
tree | 2226499dcd2a7dfffe29f30dfb797a2fa28d59ca | |
parent | common: Add missing file to repo (diff) | |
download | gnupg-62bd291dcc6d3120a28a2a2ce1bf1bd7c2b750dd.tar.gz gnupg-62bd291dcc6d3120a28a2a2ce1bf1bd7c2b750dd.zip |
common: Allow building with libgpg-error < 1.47
* common/util.h (GPG_ERR_BAD_RESET_CODE): New replacement.
(GPG_ERR_NO_RESET_CODE): New.
(GPG_ERR_BAD_PUK): New.
--
But as least 1.38 is required. Tested with 1.42
-rw-r--r-- | common/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index ca381227d..658447171 100644 --- a/common/util.h +++ b/common/util.h @@ -39,6 +39,11 @@ * libgpg-error version. Define them here. * Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21) */ +#if GPG_ERROR_VERSION_NUMBER < 0x012f00 /* 1.47 */ +#define GPG_ERR_BAD_PUK 320 +#define GPG_ERR_NO_RESET_CODE 321 +#define GPG_ERR_BAD_RESET_CODE 322 +#endif #ifndef EXTERN_UNLESS_MAIN_MODULE # if !defined (INCLUDED_BY_MAIN_MODULE) |