3ce7d3
diff --git a/lib/dns/dst_internal.h b/lib/dns/dst_internal.h
3ce7d3
index 640519a..fc40472 100644
3ce7d3
--- a/lib/dns/dst_internal.h
3ce7d3
+++ b/lib/dns/dst_internal.h
3ce7d3
@@ -59,6 +59,9 @@
3ce7d3
 #include <openssl/objects.h>
3ce7d3
 #include <openssl/rsa.h>
3ce7d3
 #endif
3ce7d3
+#if PKCS11CRYPTO
3ce7d3
+#include <pk11/pk11.h>
3ce7d3
+#endif
3ce7d3
 
3ce7d3
 ISC_LANG_BEGINDECLS
3ce7d3
 
3ce7d3
diff --git a/lib/isc/include/pk11/internal.h b/lib/isc/include/pk11/internal.h
3ce7d3
index aa8907a..603712a 100644
3ce7d3
--- a/lib/isc/include/pk11/internal.h
3ce7d3
+++ b/lib/isc/include/pk11/internal.h
3ce7d3
@@ -13,6 +13,8 @@
3ce7d3
 #ifndef PK11_INTERNAL_H
3ce7d3
 #define PK11_INTERNAL_H 1
3ce7d3
 
3ce7d3
+#include <pk11/pk11.h>
3ce7d3
+
3ce7d3
 /*! \file pk11/internal.h */
3ce7d3
 
3ce7d3
 ISC_LANG_BEGINDECLS