From ef0d31ec73f37569afa1e0757a39570f6f160f1f Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 9 Jan 2012 14:18:32 +0100 Subject: [PATCH] ndk: : Increase _NSIG definition to 64 This is a minor update to this NDK header to better match the upstream definition. --- ndk/platforms/android-3/include/signal.h | 13 ++++++++----- ndk/platforms/android-8/include/signal.h | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/ndk/platforms/android-3/include/signal.h b/ndk/platforms/android-3/include/signal.h index 55408478b..0bfd550c7 100644 --- a/ndk/platforms/android-3/include/signal.h +++ b/ndk/platforms/android-3/include/signal.h @@ -42,12 +42,15 @@ __BEGIN_DECLS typedef int sig_atomic_t; -/* crepy NIG / _NSIG handling, just to be safe */ -#ifndef NSIG -# define NSIG _NSIG -#endif +/* _NSIG is used by the SIGRTMAX definition under , however + * its definition is part of a #if __KERNEL__ .. #endif block in the original + * kernel headers and is thus not part of our cleaned-up versions. + * + * Looking at the current kernel sources, it is defined as 64 for all + * architectures except for the 'mips' one which set it to 128. + */ #ifndef _NSIG -# define _NSIG NSIG +# define _NSIG 64 #endif extern const char * const sys_siglist[]; diff --git a/ndk/platforms/android-8/include/signal.h b/ndk/platforms/android-8/include/signal.h index bd497b9b5..c9a517064 100644 --- a/ndk/platforms/android-8/include/signal.h +++ b/ndk/platforms/android-8/include/signal.h @@ -43,12 +43,15 @@ __BEGIN_DECLS typedef int sig_atomic_t; -/* crepy NIG / _NSIG handling, just to be safe */ -#ifndef NSIG -# define NSIG _NSIG -#endif +/* _NSIG is used by the SIGRTMAX definition under , however + * its definition is part of a #if __KERNEL__ .. #endif block in the original + * kernel headers and is thus not part of our cleaned-up versions. + * + * Looking at the current kernel sources, it is defined as 64 for all + * architectures except for the 'mips' one which set it to 128. + */ #ifndef _NSIG -# define _NSIG NSIG +# define _NSIG 64 #endif extern const char * const sys_siglist[];