Lines 50-56
Link Here
|
50 |
RTTimeSpecSetNano(ts, t); |
50 |
RTTimeSpecSetNano(ts, t); |
51 |
} |
51 |
} |
52 |
#else /* >= 2.6.0 */ |
52 |
#else /* >= 2.6.0 */ |
53 |
static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) |
53 |
static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts) |
54 |
{ |
54 |
{ |
55 |
int64_t t = RTTimeSpecGetNano(ts); |
55 |
int64_t t = RTTimeSpecGetNano(ts); |
56 |
int64_t nsec; |
56 |
int64_t nsec; |
Lines 60-66
Link Here
|
60 |
tv->tv_nsec = nsec; |
60 |
tv->tv_nsec = nsec; |
61 |
} |
61 |
} |
62 |
|
62 |
|
63 |
static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv) |
63 |
static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv) |
64 |
{ |
64 |
{ |
65 |
int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000; |
65 |
int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000; |
66 |
RTTimeSpecSetNano(ts, t); |
66 |
RTTimeSpecSetNano(ts, t); |