mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Merge branch 'RTLD_DEFAULT' into 'main'
Handle plugable g_modules through RTLD_DEFAULT for NetBSD Closes #19 See merge request GNOME/glib!3014
This commit is contained in:
commit
e11bf10eac
@ -167,7 +167,7 @@ _g_module_self (void)
|
|||||||
* NULL is given, dlsym returns an appropriate pointer.
|
* NULL is given, dlsym returns an appropriate pointer.
|
||||||
*/
|
*/
|
||||||
lock_dlerror ();
|
lock_dlerror ();
|
||||||
#if defined(__BIONIC__)
|
#if defined(__BIONIC__) || defined(__NetBSD__)
|
||||||
handle = RTLD_DEFAULT;
|
handle = RTLD_DEFAULT;
|
||||||
#else
|
#else
|
||||||
handle = dlopen (NULL, RTLD_GLOBAL | RTLD_LAZY);
|
handle = dlopen (NULL, RTLD_GLOBAL | RTLD_LAZY);
|
||||||
@ -182,7 +182,7 @@ _g_module_self (void)
|
|||||||
static void
|
static void
|
||||||
_g_module_close (gpointer handle)
|
_g_module_close (gpointer handle)
|
||||||
{
|
{
|
||||||
#if defined(__BIONIC__)
|
#if defined(__BIONIC__) || defined(__NetBSD__)
|
||||||
if (handle != RTLD_DEFAULT)
|
if (handle != RTLD_DEFAULT)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user