Skip to content

Commit 99e6280

Browse files
maass-hamburgmmahadevan108
authored andcommitted
logging: log_output: timestamp_print uses gmtime_r, a POSIX function
Define _POSIX_C_SOURCE for this file to make sure gmtime_r is visible. Signed-off-by: Fin Maaß <[email protected]>
1 parent 1d91d0f commit 99e6280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/logging/log_output.c

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#undef _POSIX_C_SOURCE
8+
#define _POSIX_C_SOURCE 200809L
79
#include <zephyr/logging/log_output.h>
810
#include <zephyr/logging/log_ctrl.h>
911
#include <zephyr/logging/log_output_custom.h>

0 commit comments

Comments
 (0)