|
From: Nicholas N. <nj...@ca...> - 2003-11-15 19:25:01
|
CVS commit by nethercote:
Support posix_memalign properly.
M +4 -0 vg_replace_malloc.c 1.9.2.2
--- valgrind/coregrind/vg_replace_malloc.c #1.9.2.1:1.9.2.2
@@ -374,4 +374,8 @@ int __posix_memalign ( void **memptr, UI
}
+# define weak_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+weak_alias(__posix_memalign, posix_memalign);
+
Int malloc_usable_size ( void* p )
{
|