void VG_NOTIFY_ON_LOAD(freeres)(Vg_FreeresToRun to_run);
void VG_NOTIFY_ON_LOAD(freeres)(Vg_FreeresToRun to_run)
{
-# if !defined(__UCLIBC__) && !defined(MUSL_LIBC) \
+# if !defined(__UCLIBC__) \
&& !defined(VGPV_arm_linux_android) \
&& !defined(VGPV_x86_linux_android) \
&& !defined(VGPV_mips32_linux_android) \
_ZN9__gnu_cxx9__freeresEv();
}
+# endif
+
+# if !defined(__UCLIBC__) && !defined(MUSL_LIBC) \
+ && !defined(VGPV_arm_linux_android) \
+ && !defined(VGPV_x86_linux_android) \
+ && !defined(VGPV_mips32_linux_android) \
+ && !defined(VGPV_arm64_linux_android)
+
extern void __libc_freeres(void) __attribute__((weak));
if (((to_run & VG_RUN__LIBC_FREERES) != 0) &&
(__libc_freeres != NULL)) {