[git commit future 1/1] allocsigrt.c: provide proper crrent_rtmin for LT new

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=ba1c83c4e8f38b0e3c1c968fc1932beda861aa1a
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

might be good for LT old as well

Signed-off-by: Peter S. Mazinger <ps.m at 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.3.4



More information about the uClibc-cvs mailing list