From aa17a57a257074b3762ebf4b1352ecd7410ba149 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Fri, 18 Mar 2011 23:55:37 +0100
Subject: [PATCH 109/396] 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>
---
 libc/signal/allocrtsig.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libc/signal/allocrtsig.c b/libc/signal/allocrtsig.c
index 3c7d621..40b5ea2 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
-- 
1.7.0.4

