[git commit] allocsigrt.c: provide proper crrent_rtmin for LT new
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:28 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=f96ea618cbaf2e52fafdca40fe8e2005ae393075
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
might be good for LT old as well
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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
More information about the uClibc-cvs
mailing list