aboutsummaryrefslogtreecommitdiffstats
path: root/scd/tlv.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/tlv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/scd/tlv.c b/scd/tlv.c
index b5dcd4021..b436d956a 100644
--- a/scd/tlv.c
+++ b/scd/tlv.c
@@ -25,7 +25,15 @@
#include <string.h>
#include <assert.h>
+#if GNUPG_MAJOR_VERSION == 1
+#define GPG_ERR_EOF (-1)
+#define GPG_ERR_BAD_BER (1) /*G10ERR_GENERAL*/
+#define GPG_ERR_INV_SEXP (45) /*G10ERR_INV_ARG*/
+typedef int gpg_error_t;
+#define gpg_error(n) (n)
+#else
#include <gpg-error.h>
+#endif
#include "tlv.h"