8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:03:03 +01:00

Minor mod. as per James Gregurich to allow compilation under gcc 4.2

This commit is contained in:
paulbeach 2009-08-27 11:25:58 +00:00
parent 490f3e304c
commit 2f5df0fac8

View File

@ -90,16 +90,18 @@ ModuleLoader::Module* ModuleLoader::loadModule(const Firebird::PathName& modPath
debugPrint("object file setup failure");
return 0;
case NSObjectFileImageInappropriateFile:
{
// try to load as dynamic library
void* mod = dlopen(modPath.c_str(), RTLD_LAZY);
if (mod)
{
void* mod = dlopen(modPath.c_str(), RTLD_LAZY);
if (mod)
{
return FB_NEW(*getDefaultMemoryPool()) DarwinModule(NSModule(), mod);
}
else
{
}
else
{
debugPrint("not a Mach-O MH_BUNDLE file type or dynamic library");
return 0;
}
}
case NSObjectFileImageArch:
debugPrint("no object for this architecture");