fl2k_test: fix build on Mac OS

Thanks to mot for reporting.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2018-04-27 00:15:24 +02:00
parent a968dd5603
commit fc6200b6a7
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,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;
}