for "dlopen(NULL, 0) brokenness" (which we have) that manifests itself in some GNOME apps.
19 lines
610 B
Plaintext
19 lines
610 B
Plaintext
$OpenBSD: patch-gmodule_gmodule-dyld_c,v 1.1 2004/08/08 17:12:55 marcm Exp $
|
|
--- gmodule/gmodule-dyld.c.orig Thu Feb 19 17:41:00 2004
|
|
+++ gmodule/gmodule-dyld.c Sun Aug 1 22:38:37 2004
|
|
@@ -119,7 +119,13 @@ _g_module_symbol (gpointer handle,
|
|
if (NSIsSymbolNameDefined (symbol_name))
|
|
sym = NSLookupAndBindSymbol (symbol_name);
|
|
else
|
|
- sym = NULL;
|
|
+ {
|
|
+ GModule *mod;
|
|
+ for (mod = modules, sym = NULL; mod && !sym; mod = mod->next)
|
|
+ {
|
|
+ sym = NSLookupSymbolInModule (mod->handle, symbol_name);
|
|
+ }
|
|
+ }
|
|
}
|
|
else
|
|
sym = NSLookupSymbolInModule (handle, symbol_name);
|