commit | 9fdd3f2bac79854a19f11c9821299b10e8333c2c | [log] [tgz] |
---|---|---|
author | Aurelien Jarno <aurelien@aurel32.net> | Tue May 18 21:40:40 2021 +0200 |
committer | Kumar Gala <kumar.gala@gmail.com> | Fri May 28 11:37:19 2021 -0500 |
tree | 8ace6994e2e795bbefcb9cd3130bfcd1d486c4eb | |
parent | f28d891c2148e456c802bb889d12c1034e5b56bf [diff] |
lib: newlib: fix _gettimeofday hook The time() function works correctly with the minimal libc, but always returns -1 with the newlib libc. This is due to the _gettimeofday hook being implemented that way. Fix that by calling gettimeofday in the _gettimeofday hook instead of returning -1. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>