Browse Source

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>
Peter S. Mazinger 13 years ago
parent
commit
f96ea618cb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      libc/signal/allocrtsig.c

+ 7 - 0
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