]> sourceware.org Git - valgrind.git/commitdiff
Fix Darwin compilation
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 28 Feb 2023 21:58:14 +0000 (22:58 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 28 Feb 2023 21:58:14 +0000 (22:58 +0100)
Removed memalign wrapper on Darwin, so valloc can't use it any more.

coregrind/m_replacemalloc/vg_replace_malloc.c

index cc38d665bfe5bc74eccbd08ee425836175c3a3d9..251b8ac9d3a306b73f0c0b1c64cdc62f52cae5c4 100644 (file)
@@ -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)
This page took 0.033613 seconds and 5 git commands to generate.