]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Linux reallocarray: include stdio.h
authorAlyssa Ross <hi@alyssa.is>
Mon, 22 Jun 2026 16:15:34 +0000 (18:15 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 22 Jun 2026 17:59:49 +0000 (19:59 +0200)
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")
memcheck/tests/amd64-linux/reallocarray.c

index 138f1da06926e5b20285a11de161eda626492463..d5c7395e0eb3b6d304ca59e8de18ca469181451d 100644 (file)
@@ -1,10 +1,10 @@
+#include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
 #include <errno.h>
 #include <stdint.h>
 #include <malloc.h>
 #include "../../memcheck.h"
-
 int main(void)
 {
    int *pi = NULL;