fix fallback code for old kernels in clock_gettime
authorRich Felker <dalias@aerifal.cx>
Tue, 15 Apr 2014 03:48:40 +0000 (23:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 16 Apr 2014 06:46:05 +0000 (02:46 -0400)
(cherry picked from commit 805698401dbac7ce3079fa97eaad5ba0508377f4)

src/time/clock_gettime.c

index ad5c09de9e79bcb684eac6ee08f253326584d9dc..ce9f22090a8eff4be06e01b8769fce098a79a49e 100644 (file)
@@ -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;
                }