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