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