From 85b44f0ed7a75f54aecabbff46db021c5155cd74 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Tue, 10 Jan 2023 16:35:11 -0500 Subject: [PATCH] samples: posix: gettimeofday: include time.h Due to some previous time-related header issues, we included `` without including ``. The latter is necessary for `time()` (specified by both ISO C and POSIX). Fixes #53673 Signed-off-by: Christopher Friedt --- samples/posix/gettimeofday/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/posix/gettimeofday/src/main.c b/samples/posix/gettimeofday/src/main.c index 57172e2c8c1..182debd5f9f 100644 --- a/samples/posix/gettimeofday/src/main.c +++ b/samples/posix/gettimeofday/src/main.c @@ -8,6 +8,7 @@ #include #include #include +#include #include int main(void)