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