bug fix for 986

This commit is contained in:
Bill Hoffman 2004-07-19 13:00:32 -04:00
parent 997ee7b8d6
commit c5be64081a
1 changed files with 3 additions and 3 deletions

View File

@ -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