summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-18 23:55:37 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:28 +0200
commitf96ea618cbaf2e52fafdca40fe8e2005ae393075 (patch)
treeed220d5998d33cc3ee2d2248ce6e683433d956a6 /libc
parent33d1d05a5d4a53da6386f84bbe5559e3284ac55a (diff)
allocsigrt.c: provide proper crrent_rtmin for LT new
might be good for LT old as well Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/signal/allocrtsig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/signal/allocrtsig.c b/libc/signal/allocrtsig.c
index 3c7d6211b..40b5ea24c 100644
--- a/libc/signal/allocrtsig.c
+++ b/libc/signal/allocrtsig.c
@@ -34,6 +34,13 @@ static int current_rtmax = -1;
#else
# ifdef __UCLIBC_HAS_THREADS_NATIVE__
static int current_rtmin = __SIGRTMIN + 2;
+# elif defined __UCLIBC_HAS_THREADS__ && !defined __LINUXTHREADS_OLD__
+/* psm: might be good for LT old as well, do not want to break it for now */
+/* Sanity check */
+# if !defined __SIGRTMIN || (__SIGRTMAX - __SIGRTMIN) < 3
+# error "This must not happen"
+# endif
+static int current_rtmin = __SIGRTMIN + 3;
# else
static int current_rtmin = __SIGRTMIN;
# endif