--- valgrind-3.11.0.orig/coregrind/vg_preloaded.c 2015-09-08 15:23:26.000000000 +0200 +++ valgrind-3.11.0/coregrind/vg_preloaded.c 2016-01-16 20:25:46.275096899 +0100 @@ -56,7 +56,7 @@ void VG_NOTIFY_ON_LOAD(freeres)( void ); void VG_NOTIFY_ON_LOAD(freeres)( void ) { -# if !defined(__UCLIBC__) \ +# if defined(__GLIBC__) \ && !defined(VGPV_arm_linux_android) \ && !defined(VGPV_x86_linux_android) \ && !defined(VGPV_mips32_linux_android) \