shell: date_service: conditionally include posix/time.h
When compiling for ARCH_POSIX, include `time.h` rather than `posix/time.h`. Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
parent
64e6c90fc0
commit
e6c6d82a00
1 changed files with 7 additions and 1 deletions
|
@ -8,9 +8,15 @@
|
|||
#include <zephyr/shell/shell.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <string.h>
|
||||
#include <zephyr/posix/time.h>
|
||||
|
||||
#include <zephyr/sys/timeutil.h>
|
||||
|
||||
#if defined(CONFIG_ARCH_POSIX) && defined(CONFIG_EXTERNAL_LIBC)
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <zephyr/posix/time.h>
|
||||
#endif
|
||||
|
||||
#define HELP_NONE "[none]"
|
||||
#define HELP_DATE_SET "[Y-m-d] <H:M:S>"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue