summaryrefslogtreecommitdiff
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-07-19 13:00:32 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2004-07-19 13:00:32 -0400
commitc5be64081ad6d5a6e0da342c610c7ec712bd9dba (patch)
treed5045aaf986544c97a8e2a4643f3638ea8a8b12f /Source/cmDynamicLoader.cxx
parent997ee7b8d624504dc22b8f158409ed53efad5bf7 (diff)
downloadcmake-c5be64081ad6d5a6e0da342c610c7ec712bd9dba.tar.gz
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 e6c71b25c0..638a04376f 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