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:
parent
60db257e69
commit
bac0a93d62
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue