[CRIU] [PATCH] zdtm: posix_timers -- Add definition of CLOCK_BOOTTIME

Pavel Emelyanov xemul at parallels.com
Wed Jun 25 08:37:15 PDT 2014


On 06/25/2014 05:21 PM, Cyrill Gorcunov wrote:
> On PI we've noticed that CLOCK_BOOTTIME might not be defined
> in system headers, so ship own one.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  test/zdtm/live/static/posix_timers.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/test/zdtm/live/static/posix_timers.c b/test/zdtm/live/static/posix_timers.c
> index bc412e4e931e..c6dc55dce5a8 100644
> --- a/test/zdtm/live/static/posix_timers.c
> +++ b/test/zdtm/live/static/posix_timers.c
> @@ -20,6 +20,10 @@ sigset_t mask;
>  #define MAX_TIMER_DISPLACEMENT	10
>  #define NO_PERIODIC
>  
> +#ifndef CLOCK_BOOTTIME
> +# define CLOCK_BOOTTIME		7
> +#endif
> +
>  #ifndef NO_PERIODIC
>  static void realtime_periodic_handler(int sig, siginfo_t *si, void *uc);
>  static void monotonic_periodic_handler(int sig, siginfo_t *si, void *uc);
> 
applied


More information about the CRIU mailing list