aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/apdu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index e5295f566..7843fd566 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -28,7 +28,9 @@
# include <opensc/opensc.h>
#endif
-#if GNUPG_MAJOR_VERSION == 1
+#if defined(GNUPG_SCD_MAIN_HEADER)
+#include GNUPG_SCD_MAIN_HEADER
+#elif 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. */