]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9511 - Stop plugin.c from generating an error when running make depend even if...
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 1 Apr 2021 22:46:11 +0000 (22:46 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 2 Apr 2021 21:12:53 +0000 (21:12 +0000)
servers/slapd/slapi/plugin.c

index 7ebc23f3aaa764efd518884d7f1bc148a55f6d99..fb9f218f5ea91fac517f526ec256912b0152ff74 100644 (file)
  */
 
 #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 <ltdl.h>
-
 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 /*