soc: intel_s1000: provide dummy version of _gettimeofday_r()

The newlib of XCC requires linking to _gettimeofday_r() which
should have been provided by its own C library, but obviously
isn't. So we need to provide a dummy version to get past
the build error.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2019-12-16 09:35:03 -08:00 committed by Johan Hedberg
commit bac0a93d62

View file

@ -102,3 +102,12 @@ void *_sbrk_r(struct _reent *r, int count)
return _sbrk(count);
}
int _gettimeofday_r(struct _reent *r, struct timeval *__tp, void *__tzp)
{
ARG_UNUSED(r);
ARG_UNUSED(__tp);
ARG_UNUSED(__tzp);
return -1;
}