aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index d5f64c6d8..d5b93de6e 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -28,7 +28,20 @@
# include <opensc/opensc.h>
#endif
+#if GNUPG_MAJOR_VERSION == 1
+/* This is used with GnuPG version < 1.9. The code has been source
+ copied from the current GnuPG >= 1.9 and is maintained over
+ there. */
+#include "options.h"
+#include "errors.h"
+#include "memory.h"
+#include "util.h"
+#include "i18n.h"
+#include "cardglue.h"
+#else /* GNUPG_MAJOR_VERSION != 1 */
#include "scdaemon.h"
+#endif /* GNUPG_MAJOR_VERSION != 1 */
+
#include "apdu.h"
#include "dynload.h"
#include "ccid-driver.h"