From 40c196b0ca12c6fa27774776f8cc7e970c5afebc Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Tue, 28 Feb 2023 22:58:14 +0100 Subject: [PATCH] Fix Darwin compilation Removed memalign wrapper on Darwin, so valloc can't use it any more. --- coregrind/m_replacemalloc/vg_replace_malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index cc38d665bf..251b8ac9d3 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -1719,8 +1719,8 @@ extern int *___errno (void) __attribute__((weak)); if (pszB == 0) \ pszB = my_getpagesize(); \ TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord) zone); \ - return VG_REPLACE_FUNCTION_EZU(10110,VG_Z_LIBC_SONAME,memalign) \ - ((SizeT)pszB, size); \ + return (void*)VALGRIND_NON_SIMD_CALL2( info.tl_memalign, \ + pszB, size ); \ } #if defined(VGO_linux) -- 2.47.2