]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8794 - Fix implicit declaration for ldap_is_ldapc_url
authorJame Gerwe <jamegerwe@fake-box.com>
Fri, 29 Dec 2017 08:31:51 +0000 (08:31 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 17 Jun 2019 17:25:29 +0000 (17:25 +0000)
Fix building OpenLDAP with -DLDAP_CONNECTIONLESS so that ldap_is_ldapc_url function is defined

include/ldap.h
libraries/libldap/open.c

index 3e37e03397e97abcc123b539062757e67bf81ca0..73fdb1a9f2be4d4130710a9f1fa74554ed5c1681 100644 (file)
@@ -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,
index 5fe81a335013c63f5855e225c330b35879215a3d..7be650dd5c15a55e87ad1aca937b6c0a77f54e63 100644 (file)
@@ -33,6 +33,7 @@
 #include <ac/unistd.h>
 
 #include "ldap-int.h"
+#include "ldap.h"
 #include "ldap_log.h"
 
 /* Caller must hold the conn_mutex since simultaneous accesses are possible */