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