summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-13 09:57:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-13 13:09:41 +0100
commit9984579e96a966c2e47db98ceeb9a83b1adefa00 (patch)
tree7fccc7ba951a3d3f84fdfd4ba38bedb186f3760b /dbaccess
parent1568e51ff288e43b0a97257dbe3d3c81bdb1d386 (diff)
survive building dbaccess+connectivity with --disable-dynamic-loading
Change-Id: I49387d2b6ec1893bf721e3289f2f620a4ce71fb3 Reviewed-on: https://gerrit.libreoffice.org/44668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx
index c9a888815bfd..5cb07ab2ca2e 100644
--- a/dbaccess/source/ui/dlg/odbcconfig.cxx
+++ b/dbaccess/source/ui/dlg/odbcconfig.cxx
@@ -73,7 +73,7 @@ typedef SQLRETURN (SQL_API* TSQLDataSources) (SQLHENV EnvironmentHandle, SQLUSMA
bool OOdbcEnumeration::load(const sal_Char* _pLibPath)
{
m_sLibPath = OUString::createFromAscii(_pLibPath);
-#ifdef HAVE_ODBC_SUPPORT
+#if defined(HAVE_ODBC_SUPPORT) && !defined(DISABLE_DYNLOADING)
// load the module
m_pOdbcLib = osl_loadModule(m_sLibPath.pData, SAL_LOADMODULE_NOW);
return (nullptr != m_pOdbcLib);
@@ -84,7 +84,7 @@ bool OOdbcEnumeration::load(const sal_Char* _pLibPath)
void OOdbcEnumeration::unload()
{
-#ifdef HAVE_ODBC_SUPPORT
+#if defined(HAVE_ODBC_SUPPORT) && !defined(DISABLE_DYNLOADING)
if (isLoaded())
{
osl_unloadModule(m_pOdbcLib);