From c5be64081ad6d5a6e0da342c610c7ec712bd9dba Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 19 Jul 2004 13:00:32 -0400 Subject: [PATCH] bug fix for 986 --- Source/cmDynamicLoader.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx index e6c71b25c..638a04376 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