diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c index bb551c6ed59..9ba04cab654 100644 --- a/lib/libc/newlib/libc-hooks.c +++ b/lib/libc/newlib/libc-hooks.c @@ -358,3 +358,13 @@ void *_sbrk_r(struct _reent *r, int count) return _sbrk(count); } #endif /* CONFIG_XTENSA */ + +struct timeval; + +int _gettimeofday(struct timeval *__tp, void *__tzp) +{ + ARG_UNUSED(__tp); + ARG_UNUSED(__tzp); + + return -1; +}