mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
H7 mbedtls build fixed
This commit is contained in:
1 parent
5e50b7104c
commit
7548af895b
3 files changed
+12
No files matched your search
@@ -86,3 +86,13 @@ int mkdir(const char *path, mode_t mode) {
|
||||
}
|
||||
|
||||
void _init(void) {}
|
||||
|
||||
extern uint64_t mg_now(void);
|
||||
|
||||
int _gettimeofday(struct timeval *tv, void *tz) {
|
||||
uint64_t now = mg_now();
|
||||
(void) tz;
|
||||
tv->tv_sec = (time_t) (now / 1000);
|
||||
tv->tv_usec = (unsigned long) ((now % 1000) * 1000);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user