From 10060c8891efebcc43ee3589239f776e8f62c5b7 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 28 Dec 2023 17:47:53 +0100 Subject: [PATCH] tests/benchmarks/footprints: Define required source standard macros strnlen is not a C standard API, but an extension. Instead of relaying that the SOURCE macro was set somewhere else of that the C library provides a prototype anyhow let's explicitly define it for this library. Signed-off-by: Alberto Escolar Piedras --- tests/benchmarks/footprints/src/libc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/benchmarks/footprints/src/libc.c b/tests/benchmarks/footprints/src/libc.c index 48b8eb823cf..7cf71239f4c 100644 --- a/tests/benchmarks/footprints/src/libc.c +++ b/tests/benchmarks/footprints/src/libc.c @@ -4,6 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L + #include #include