pkgsrc/devel/glib2/patches/patch-ae
jmmv 6e8e2cf076 Update to 2.4.0nb2:
Add a workaround for broken dlopen(NULL, 0) implementations, like NetBSD's
one, which don't search in modules opened at runtime to locate symbols
requested through the global handle.  The workaround consists in querying
all open modules (not just the main one) when finding a symbol through the
global handle.

This should be fixed in NetBSD, but the check and workaround are needed to
let this work on not-so-old versions of it.  The patch has been submitted
to glib developers, too.

This problem exposes, at least, in evolution's settings dialog, where many
widgets can't be created because of missing functions.
2004-04-17 10:37:12 +00:00

16 lines
425 B
Text

$NetBSD: patch-ae,v 1.5 2004/04/17 10:37:12 jmmv Exp $
http://bugzilla.gnome.org/show_bug.cgi?id=140329
--- gmodule/gmoduleconf.h.in.orig 2004-02-24 15:00:19.000000000 +0100
+++ gmodule/gmoduleconf.h.in
@@ -45,6 +45,9 @@ extern "C" {
#if (@G_MODULE_BROKEN_RTLD_GLOBAL@)
#define G_MODULE_BROKEN_RTLD_GLOBAL
#endif
+#if (@G_MODULE_BROKEN_DLOPEN_NULL@)
+#define G_MODULE_BROKEN_DLOPEN_NULL
+#endif
#ifdef __cplusplus
}