From 2fc4f25c93f9abbd1bea5dabcab9989f3b6082e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 7 Sep 2006 09:07:15 +0000 Subject: [PATCH] Don't build most of the pkcs11 module if there are no dlopen(). git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18046 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_p11.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/hx509/ks_p11.c b/lib/hx509/ks_p11.c index c154648e0..402683b27 100644 --- a/lib/hx509/ks_p11.c +++ b/lib/hx509/ks_p11.c @@ -33,7 +33,11 @@ #include "hx_locl.h" RCSID("$Id$"); +#ifdef HAVE_DLFCN_H #include +#endif + +#ifdef HAVE_DLOPEN #include "pkcs11u.h" #include "pkcs11.h" @@ -1155,8 +1159,12 @@ static struct hx509_keyset_ops keyset_pkcs11 = { p11_printinfo }; +#endif /* HAVE_DLOPEN */ + void _hx509_ks_pkcs11_register(hx509_context context) { +#ifdef HAVE_DLOPEN _hx509_ks_register(context, &keyset_pkcs11); +#endif }