summaryrefslogtreecommitdiffstats
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-07-19 17:00:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-07-19 17:00:32 (GMT)
commitc5be64081ad6d5a6e0da342c610c7ec712bd9dba (patch)
treed5045aaf986544c97a8e2a4643f3638ea8a8b12f /Source/cmDynamicLoader.cxx
parent997ee7b8d624504dc22b8f158409ed53efad5bf7 (diff)
downloadCMake-c5be64081ad6d5a6e0da342c610c7ec712bd9dba.zip
CMake-c5be64081ad6d5a6e0da342c610c7ec712bd9dba.tar.gz
CMake-c5be64081ad6d5a6e0da342c610c7ec712bd9dba.tar.bz2
bug fix for 986
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