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