From: Alyssa Ross Date: Mon, 22 Jun 2026 16:15:34 +0000 (+0200) Subject: Linux reallocarray: include stdio.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=991961ece87e4cdc0771a05c956c55baa437bb07;p=thirdparty%2Fvalgrind.git Linux reallocarray: include stdio.h Per POSIX, fprintf comes from stdio.h. When building with musl, none of the other included headers provide fprintf. Fixes: 4bb5691fc ("Linux reallocarray: update testcase and expected") --- diff --git a/memcheck/tests/amd64-linux/reallocarray.c b/memcheck/tests/amd64-linux/reallocarray.c index 138f1da06..d5c7395e0 100644 --- a/memcheck/tests/amd64-linux/reallocarray.c +++ b/memcheck/tests/amd64-linux/reallocarray.c @@ -1,10 +1,10 @@ +#include #include #include #include #include #include #include "../../memcheck.h" - int main(void) { int *pi = NULL;