1 Index: extensions/source/config/ldap/wrapldapinclude.hxx
2 ===================================================================
3 --- extensions/source/config/ldap/wrapldapinclude.hxx (revision 276155)
4 +++ extensions/source/config/ldap/wrapldapinclude.hxx (working copy)
10 +# define LDAP_API(rt) rt
18 Index: extensions/source/config/ldap/ldapaccess.cxx
19 ===================================================================
20 --- extensions/source/config/ldap/ldapaccess.cxx (revision 276155)
21 +++ extensions/source/config/ldap/ldapaccess.cxx (working copy)
25 #if defined(WIN) || defined(WNT)
26 - const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM("nsldap32v50.dll"));
27 +# define LIBLDAP "nsldap32v50.dll"
30 - const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM("libldap.so"));
32 - const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM("libldap50.so"));
33 +# ifdef WITH_OPENLDAP
34 +# define xstr(s) str(s)
36 +# define LIBLDAP "libldap-" xstr(LDAP_VENDOR_VERSION_MAJOR) "." xstr(LDAP_VENDOR_VERSION_MINOR) ".so." xstr(LDAP_VENDOR_VERSION_MAJOR)
38 +# define LIBLDAP "libldap50.so"
42 + const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM(LIBLDAP));
44 // load the dbtools library
45 s_Ldap_Module = osl_loadModuleRelative(&thisModule, sModuleName.pData, 0);