From 6c177e662988179dd2eb5647c12f571eb5738888 Mon Sep 17 00:00:00 2001 From: Jame Gerwe Date: Fri, 29 Dec 2017 08:31:51 +0000 Subject: [PATCH] ITS#8794 - Fix implicit declaration for ldap_is_ldapc_url Fix building OpenLDAP with -DLDAP_CONNECTIONLESS so that ldap_is_ldapc_url function is defined --- include/ldap.h | 6 ++++++ libraries/libldap/open.c | 1 + 2 files changed, 7 insertions(+) diff --git a/include/ldap.h b/include/ldap.h index 3e37e03397..73fdb1a9f2 100644 --- a/include/ldap.h +++ b/include/ldap.h @@ -2077,6 +2077,12 @@ LDAP_F( int ) ldap_is_ldapi_url LDAP_P(( LDAP_CONST char *url )); +#ifdef LDAP_CONNECTIONLESS +LDAP_F( int ) +ldap_is_ldapc_url LDAP_P(( + LDAP_CONST char *url )); +#endif + LDAP_F( int ) ldap_url_parse LDAP_P(( LDAP_CONST char *url, diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 5fe81a3350..7be650dd5c 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -33,6 +33,7 @@ #include #include "ldap-int.h" +#include "ldap.h" #include "ldap_log.h" /* Caller must hold the conn_mutex since simultaneous accesses are possible */