Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ extern "C" {
#include <zephyr/toolchain.h> // __weak, __builtin_xxx() etc.,

#define PATH_SEPARATOR '/'
#define __noreturn FUNC_NORETURN
#define __unreachable() __builtin_unreachable()
#define __format_printf(x, y) __attribute__((format(printf, x, y)))

Expand Down
4 changes: 4 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,17 @@ struct timezone {
};
#endif

int gettimeofday(struct timeval * tp, struct timezone * tzp);

#ifndef __ZEPHYR__
int gettimeofday(struct timeval * tp, struct timezone * tzp)
{
ARG_UNUSED(tzp);
tp->tv_sec = 0;
tp->tv_usec = 0;
return 0;
}
#endif

int add_iso8601_utc_datetime(char* buf, size_t size) {
ARG_UNUSED(buf);
Expand Down