diff --git a/servers/slapd/slapi/plugin.c b/servers/slapd/slapi/plugin.c index 7ebc23f3aa..fb9f218f5e 100644 --- a/servers/slapd/slapi/plugin.c +++ b/servers/slapd/slapi/plugin.c @@ -21,17 +21,18 @@ */ #include "portable.h" + +/* + * Note: if ltdl.h is not available, slapi should not be compiled + */ + +#ifdef HAVE_LTDL_H #include "ldap_pvt_thread.h" #include "slap.h" #include "slap-config.h" #include "slapi.h" #include "lutil.h" -/* - * Note: if ltdl.h is not available, slapi should not be compiled - */ -#include - static int slapi_int_load_plugin( Slapi_PBlock *, const char *, const char *, int, SLAPI_FUNC *, lt_dlhandle * ); @@ -827,4 +828,4 @@ slapi_int_plugin_unparse( ber_bvarray_add( out, &bv ); } } - +#endif /* HAVE_LTDL_H /*