From 99e6280d7e22552de9a94992b626acdcbde00fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Fri, 20 Sep 2024 11:05:52 +0200 Subject: [PATCH] logging: log_output: timestamp_print uses gmtime_r, a POSIX function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Define _POSIX_C_SOURCE for this file to make sure gmtime_r is visible. Signed-off-by: Fin Maaß --- subsys/logging/log_output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/logging/log_output.c b/subsys/logging/log_output.c index 56f5535eaa09..116db647002a 100644 --- a/subsys/logging/log_output.c +++ b/subsys/logging/log_output.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L #include #include #include