Make it compile on AIX. (#141159, Michael Wilson)

Tue May 11 23:23:21 2004  Matthias Clasen  <maclas@gmx.de>

	* gmodule-ar.c (_g_module_open): Make it compile on AIX.
	(#141159, Michael Wilson)
This commit is contained in:
Matthias Clasen 2004-05-12 03:31:55 +00:00 committed by Matthias Clasen
parent 185c1de577
commit 52e231144f
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
Tue May 11 23:23:21 2004 Matthias Clasen <maclas@gmx.de>
* gmodule-ar.c (_g_module_open): Make it compile on AIX.
(#141159, Michael Wilson)
2004-03-31 Tor Lillqvist <tml@iki.fi>
* gmodule-win32.c (_g_module_build_path): On Cygwin, use the "cyg"

View File

@ -97,7 +97,8 @@ exit:
static gpointer
_g_module_open (const gchar *file_name,
gboolean bind_lazy)
gboolean bind_lazy,
gboolean bind_local)
{
gpointer handle;
gchar* member;
@ -114,7 +115,8 @@ _g_module_open (const gchar *file_name,
else
full_name = g_strdup (file_name);
handle = dlopen (full_name, RTLD_GLOBAL | RTLD_MEMBER | (bind_lazy ? RTLD_LAZY : RTLD_NOW));
handle = dlopen (full_name,
(bind_local ? RTLD_LOCAL : RTLD_GLOBAL) | RTLD_MEMBER | (bind_lazy ? RTLD_LAZY : RTLD_NOW));
g_free (full_name);