mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Handle plugable g_modules through RTLD_DEFAULT for NetBSD
fix issue #19
This commit is contained in:
parent
86430a27d2
commit
81e4498565
@ -167,7 +167,7 @@ _g_module_self (void)
|
||||
* NULL is given, dlsym returns an appropriate pointer.
|
||||
*/
|
||||
lock_dlerror ();
|
||||
#if defined(__BIONIC__)
|
||||
#if defined(__BIONIC__) || defined(__NetBSD__)
|
||||
handle = RTLD_DEFAULT;
|
||||
#else
|
||||
handle = dlopen (NULL, RTLD_GLOBAL | RTLD_LAZY);
|
||||
@ -182,7 +182,7 @@ _g_module_self (void)
|
||||
static void
|
||||
_g_module_close (gpointer handle)
|
||||
{
|
||||
#if defined(__BIONIC__)
|
||||
#if defined(__BIONIC__) || defined(__NetBSD__)
|
||||
if (handle != RTLD_DEFAULT)
|
||||
#endif
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user