From: Rich Felker Date: Tue, 15 Apr 2014 03:48:40 +0000 (-0400) Subject: fix fallback code for old kernels in clock_gettime X-Git-Tag: v1.1.0~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=805698401dbac7ce3079fa97eaad5ba0508377f4;p=oweals%2Fmusl.git fix fallback code for old kernels in clock_gettime --- diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index ad5c09de..ce9f2209 100644 --- a/src/time/clock_gettime.c +++ b/src/time/clock_gettime.c @@ -10,7 +10,7 @@ static int sc_clock_gettime(clockid_t clk, struct timespec *ts) if (!r) return r; if (r == -ENOSYS) { if (clk == CLOCK_REALTIME) { - __syscall(SYS_gettimeofday, clk, ts, 0); + __syscall(SYS_gettimeofday, ts, 0); ts->tv_nsec = (int)ts->tv_nsec * 1000; return 0; }