]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin regtest: fix build of memcheck rh2257546_128 and rh2257546_256
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 27 Mar 2024 09:38:28 +0000 (10:38 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 27 Mar 2024 09:38:28 +0000 (10:38 +0100)
No malloc.h

memcheck/tests/amd64/rh2257546_128.c
memcheck/tests/amd64/rh2257546_256.c

index a405aa7751b061b2c4d560284b6c39e903756980..973fcdbfabee8d64972e8927e02634769d9715f3 100644 (file)
@@ -3,7 +3,11 @@
 // See https://bugzilla.redhat.com/show_bug.cgi?id=2257546
 
 #include <stdio.h>
+#if defined(__APPLE__)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 
 int main ( void ) 
 {
index 235005ca6f6fe675f15e74929e9afc3671795abf..4b522c7e46ff8a9eb292a0f2872e41279e55ec69 100644 (file)
@@ -3,7 +3,11 @@
 // See https://bugzilla.redhat.com/show_bug.cgi?id=2257546
 
 #include <stdio.h>
+#if defined(__APPLE__)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 
 int main ( void ) 
 {