Skip to content

Commit

Permalink
logging: log_output: timestamp_print uses gmtime_r, a POSIX function
Browse files Browse the repository at this point in the history
Define _POSIX_C_SOURCE for this file to make sure gmtime_r is visible.

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg authored and mmahadevan108 committed Sep 24, 2024
1 parent 1d91d0f commit 99e6280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/logging/log_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#include <zephyr/logging/log_output.h>
#include <zephyr/logging/log_ctrl.h>
#include <zephyr/logging/log_output_custom.h>
Expand Down

0 comments on commit 99e6280

Please sign in to comment.