From: Samuel Thibault Date: Mon, 26 Feb 2018 23:55:59 +0000 (+0100) Subject: hurd: fix timer_routines.c build X-Git-Tag: glibc-2.28~548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb937a52856857e7ecb1fadb565c3fc9775ed60e;p=thirdparty%2Fglibc.git hurd: fix timer_routines.c build * sysdeps/pthread/timer_routines.c: [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX. --- diff --git a/ChangeLog b/ChangeLog index 98fb1628821..5ef98145163 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * sysdeps/pthread/timer_routines.c: Include instead of (thread_attr_compare): Move function to... + [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX. * sysdeps/nptl/timer_routines.h: ... new header. 2018-02-26 Joseph Myers diff --git a/sysdeps/pthread/timer_routines.c b/sysdeps/pthread/timer_routines.c index 84861b95578..940db62b25f 100644 --- a/sysdeps/pthread/timer_routines.c +++ b/sysdeps/pthread/timer_routines.c @@ -31,6 +31,9 @@ #include "posix-timer.h" #include +#ifndef DELAYTIMER_MAX +# define DELAYTIMER_MAX INT_MAX +#endif /* Number of threads used. */ #define THREAD_MAXNODES 16