From: Quanah Gibson-Mount Date: Thu, 1 Apr 2021 22:46:11 +0000 (+0000) Subject: ITS#9511 - Stop plugin.c from generating an error when running make depend even if... X-Git-Tag: OPENLDAP_REL_ENG_2_5_4~7^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cdfc85fc56130628670ca9fe76d6034ddabdd8d;p=thirdparty%2Fopenldap.git ITS#9511 - Stop plugin.c from generating an error when running make depend even if slapi is not enabled --- 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 /*