public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] hurd: fix timer_routines.c build
@ 2018-02-27  0:42 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2018-02-27  0:42 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault

        * sysdeps/pthread/timer_routines.c: [!defined DELAYTIMER_MAX]
        (DELAYTIMER_MAX): Define to INT_MAX.
---
 ChangeLog                        | 1 +
 sysdeps/pthread/timer_routines.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 98fb162882..5ef9814516 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
 	of <nptl/pthreadP.h>
 	(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  <joseph@codesourcery.com>
diff --git a/sysdeps/pthread/timer_routines.c b/sysdeps/pthread/timer_routines.c
index 84861b9557..940db62b25 100644
--- a/sysdeps/pthread/timer_routines.c
+++ b/sysdeps/pthread/timer_routines.c
@@ -31,6 +31,9 @@
 #include "posix-timer.h"
 #include <internaltypes.h>
 
+#ifndef DELAYTIMER_MAX
+# define DELAYTIMER_MAX INT_MAX
+#endif
 
 /* Number of threads used.  */
 #define THREAD_MAXNODES	16
-- 
2.16.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-26 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27  0:42 [hurd,commited] hurd: fix timer_routines.c build Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).