summaryrefslogtreecommitdiffstats
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r--Source/cmDynamicLoader.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index e6c71b2..638a043 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -121,7 +121,7 @@ cmLibHandle cmDynamicLoader::OpenLibrary(const char* libname )
int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
{
- return shl_unload(lib);
+ return !shl_unload(lib);
}
cmDynamicLoaderFunction
@@ -183,7 +183,7 @@ int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
(void)lib;
NSUnLinkModule(lib, FALSE);
- return 0;
+ return 1;
}
cmDynamicLoaderFunction
@@ -309,7 +309,7 @@ cmLibHandle cmDynamicLoader::OpenLibrary(const char* libname )
int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
{
- return (int)dlclose(lib);
+ return !(int)dlclose(lib);
}
cmDynamicLoaderFunction