diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-11-15 15:04:26 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2011-11-15 15:17:15 +0100 |
commit | 446514f97eaf555200f9ec4f369223f984e638a5 (patch) | |
tree | 2dd24107d610a0bdff14fc01a0ded3ffb0b7adf9 /sysdeps/unix/sysv/linux/clock_gettime.c | |
parent | a501a01e069619676990454abd43c4d2bf4527f4 (diff) | |
download | glibc-446514f97eaf555200f9ec4f369223f984e638a5.tar glibc-446514f97eaf555200f9ec4f369223f984e638a5.tar.gz glibc-446514f97eaf555200f9ec4f369223f984e638a5.tar.bz2 glibc-446514f97eaf555200f9ec4f369223f984e638a5.zip |
Fix clock_gettime for assumed kernel >= 2.6.12
Diffstat (limited to 'sysdeps/unix/sysv/linux/clock_gettime.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/clock_gettime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_gettime.c b/sysdeps/unix/sysv/linux/clock_gettime.c index e5e032d98b..ad0fe1e8b5 100644 --- a/sysdeps/unix/sysv/linux/clock_gettime.c +++ b/sysdeps/unix/sysv/linux/clock_gettime.c @@ -110,7 +110,9 @@ maybe_syscall_gettime (clockid_t clock_id, struct timespec *tp) # if __ASSUME_POSIX_CPU_TIMERS > 0 -# define SYSDEP_GETTIME_CPU SYSCALL_GETTIME +# define SYSDEP_GETTIME_CPU(clock_id, tp) \ + retval = SYSCALL_GETTIME (clock_id, tp); \ + break # define SYSDEP_GETTIME_CPUTIME /* Default catches them too. */ # else |