From 2669f9812dbdca88dd7115bbb5904708b544ae51 Mon Sep 17 00:00:00 2001 From: Ryan Cumming Date: Mon, 17 Nov 2014 14:39:23 +1100 Subject: [PATCH] Add definition for CLOCK_TAI This was introduced in Linux 3.10 to query the current time in TAI --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/bits/time.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index ccdf3e7..fc9d8d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-17 Ryan Cumming + + [BZ #17608] + * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI. + 2014-11-14 Roland McGrath * signal/signal.h [__USE_MISC] diff --git a/sysdeps/unix/sysv/linux/bits/time.h b/sysdeps/unix/sysv/linux/bits/time.h index 1080547..eb6da83 100644 --- a/sysdeps/unix/sysv/linux/bits/time.h +++ b/sysdeps/unix/sysv/linux/bits/time.h @@ -77,6 +77,8 @@ extern long int __sysconf (int); # define CLOCK_REALTIME_ALARM 8 /* Like CLOCK_BOOTTIME but also wakes suspended system. */ # define CLOCK_BOOTTIME_ALARM 9 +/* Like CLOCK_REALTIME but in International Atomic Time. */ +# define CLOCK_TAI 11 /* Flag to indicate time is absolute. */ # define TIMER_ABSTIME 1 -- 2.1.2