mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-28 19:04:56 +01:00
rtl_test: fix build on Mac OS
Thanks to mot for reporting. closes #3130 Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
566a1b942f
commit
c403ef0bc1
@ -162,8 +162,8 @@ static int ppm_gettime(struct time_generic *tg)
|
||||
struct timeval tv;
|
||||
|
||||
rv = gettimeofday(&tv, NULL);
|
||||
ts->tv_sec = tv.tv_sec;
|
||||
ts->tv_nsec = tv.tv_usec * 1000;
|
||||
tg->tv_sec = tv.tv_sec;
|
||||
tg->tv_nsec = tv.tv_usec * 1000;
|
||||
#endif
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user