|
@@ -441,9 +441,11 @@ size_t reqaddr_request6;
|
|
|
int clock_gettime(int clockid, struct timespec *tp) {
|
|
|
|
|
|
struct timeval tv;
|
|
|
+ int unused_id = clockid;
|
|
|
gettimeofday(&tv, NULL);
|
|
|
+ unused_id = 0;
|
|
|
tp->tv_sec = tv.tv_sec;
|
|
|
- tp->tv_nsec = tv.tv_usec*1000;
|
|
|
+ tp->tv_nsec = tv.tv_usec*1000 + unused_id;
|
|
|
|
|
|
return (0);
|
|
|
}
|