]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: add redir for wcscpy
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 26 Jun 2026 11:19:02 +0000 (13:19 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 26 Jun 2026 11:22:38 +0000 (13:22 +0200)
The dhat copy test was failing because of this missing redir.

Also I see that the same test does not cover wcsncpy or wcpncpy.
Will add them to the test (and add macOS redirs if needed).

shared/vg_replace_strmem.c

index 62f6316828a3fbdebb2b18287082cc69e1db446f..710170fdaa816be72a81ed6046b538ed6dd96da0 100644 (file)
@@ -2252,6 +2252,8 @@ static inline void my_exit ( int x )
 
 #if defined(VGO_linux) || defined(VGO_solaris) || defined(VGO_freebsd)
  WCSCPY(VG_Z_LIBC_SONAME, wcscpy)
+#elif defined(VGO_darwin)
+ WCSCPY(libsystemZucZaZddylib, wcscpy)
 #endif