From 6e0632a29ecc0051307eea4458bebd1ea7136115 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Tue, 2 Apr 2024 08:43:00 -0300 Subject: [PATCH] gmodule-dl: Use __ANDROID__ to test for the OS, not __BIONIC__ See https://android.googlesource.com/platform/bionic/+/HEAD/docs/defines.md --- gmodule/gmodule-dl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c index 85062d038..6d1c5fab7 100644 --- a/gmodule/gmodule-dl.c +++ b/gmodule/gmodule-dl.c @@ -167,7 +167,7 @@ _g_module_self (void) * NULL is given, dlsym returns an appropriate pointer. */ lock_dlerror (); -#if defined(__BIONIC__) || defined(__NetBSD__) || defined(__FreeBSD__) +#if defined(__ANDROID__) || defined(__NetBSD__) || defined(__FreeBSD__) 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__) || defined(__NetBSD__) || defined(__FreeBSD__) +#if defined(__ANDROID__) || defined(__NetBSD__) || defined(__FreeBSD__) if (handle != RTLD_DEFAULT) #endif {