From 6cdfc85fc56130628670ca9fe76d6034ddabdd8d Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 1 Apr 2021 22:46:11 +0000 Subject: [PATCH] ITS#9511 - Stop plugin.c from generating an error when running make depend even if slapi is not enabled --- servers/slapd/slapi/plugin.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 /* -- 2.47.3