summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/pthread/posix-timer.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-26 08:06:52 +0000
committerRoland McGrath <roland@gnu.org>2003-03-26 08:06:52 +0000
commit333ab52196cf32a34afd2d076acfc37356e528f9 (patch)
treeae3b2e9c8969d84c0b802a34b5199c6c0738a707 /nptl/sysdeps/pthread/posix-timer.h
parent8e0665200993992aeaa918e608cc60655955548a (diff)
downloadglibc-333ab52196cf32a34afd2d076acfc37356e528f9.tar.gz
2003-03-25 Roland McGrath <roland@redhat.com>
* sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined. (timer_id2ptr): Fix typo.
Diffstat (limited to 'nptl/sysdeps/pthread/posix-timer.h')
-rw-r--r--nptl/sysdeps/pthread/posix-timer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/sysdeps/pthread/posix-timer.h b/nptl/sysdeps/pthread/posix-timer.h
index bc0c57f63b..89ffc5a89c 100644
--- a/nptl/sysdeps/pthread/posix-timer.h
+++ b/nptl/sysdeps/pthread/posix-timer.h
@@ -69,6 +69,13 @@ struct timer_node
};
+/* The limit is not published if we are compiled with kernel timer support.
+ But we still compiled in this implementation with its limit unless built
+ to require the kernel support. */
+#ifndef TIMER_MAX
+# define TIMER_MAX 256
+#endif
+
/* Static array with the structures for all the timers. */
extern struct timer_node __timer_array[TIMER_MAX];
@@ -111,7 +118,7 @@ timer_ptr2id (struct timer_node *timer)
return timer - __timer_array;
}
#else
-# define timer_id2ptr(timerid) ((struct timed_node *) timerid)
+# define timer_id2ptr(timerid) ((struct timer_node *) timerid)
# define timer_ptr2id(timerid) ((void *) timerid)
#endif