From 5ca8894b596fc37e6961ef7683a3a82018cfb690 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 19 Feb 2026 00:43:59 +0100 Subject: [PATCH] Fix the build with dietlibc Signed-off-by: Gilles Peskine --- tests/suites/host_test.function | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/suites/host_test.function b/tests/suites/host_test.function index d28a75e077..90b050e129 100644 --- a/tests/suites/host_test.function +++ b/tests/suites/host_test.function @@ -275,7 +275,12 @@ static int convert_params(size_t cnt, char **params, * \return 0 for success else 1 */ #if defined(__GNUC__) +# if defined(__dietlibc__) +/* __noinline__ is a macro in dietlibc... */ +__attribute__((noinline)) +# else __attribute__((__noinline__)) +# endif #endif static int test_snprintf(size_t n, const char *ref_buf, int ref_ret) {