File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ void rtc_compensate(int adjust)
387387}
388388
389389__attribute__((weak ))
390- int _gettimeofday (struct timeval * tv , void * ignore )
390+ int _gettimeofday (struct timeval * tv , struct timezone * ignore )
391391{
392392 uint32_t sec = RTC_TSR ;
393393 uint32_t pre = RTC_TPR ;
@@ -411,7 +411,7 @@ void rtc_set(unsigned long t) { }
411411void rtc_compensate (int adjust ) { }
412412
413413__attribute__((weak ))
414- int _gettimeofday (struct timeval * tv , void * ignore ) { return -1 ; }
414+ int _gettimeofday (struct timeval * tv , struct timezone * ignore ) { return -1 ; }
415415
416416#endif
417417
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ void rtc_compensate(int adjust __attribute__((unused)))
7272// https://github.com/arduino-libraries/ArduinoBearSSL/issues/54
7373// https://forum.pjrc.com/threads/70966
7474__attribute__((weak ))
75- int _gettimeofday (struct timeval * tv , void * ignore __attribute__((unused )))
75+ int _gettimeofday (struct timeval * tv ,
76+ struct timezone * ignore __attribute__((unused )))
7677{
7778 uint32_t hi1 = SNVS_HPRTCMR ;
7879 uint32_t lo1 = SNVS_HPRTCLR ;
You can’t perform that action at this time.
0 commit comments