summaryrefslogtreecommitdiffstats
path: root/ndk/platforms/android-8
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2012-01-09 14:18:32 +0100
committerDavid 'Digit' Turner <digit@google.com>2012-01-11 11:29:10 +0100
commitfed3dfbb08354bf1dfc85b974ac4dcdacfad6f9f (patch)
tree9db6aed23f90167cafd571195b9a3bd00163d716 /ndk/platforms/android-8
parentaa566ea2561036ed9ea4dcd71251e8959e0eb95b (diff)
downloadandroid_development-fed3dfbb08354bf1dfc85b974ac4dcdacfad6f9f.tar.gz
android_development-fed3dfbb08354bf1dfc85b974ac4dcdacfad6f9f.tar.bz2
android_development-fed3dfbb08354bf1dfc85b974ac4dcdacfad6f9f.zip
ndk: <signal.h>: Increase _NSIG definition to 64
This is a minor update to this NDK header to better match the upstream definition. Change-Id: I7b7e84b65f7a45d6395ba9831ee72ad120f989db
Diffstat (limited to 'ndk/platforms/android-8')
-rw-r--r--ndk/platforms/android-8/include/signal.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/ndk/platforms/android-8/include/signal.h b/ndk/platforms/android-8/include/signal.h
index 440116443..91c3b00ad 100644
--- a/ndk/platforms/android-8/include/signal.h
+++ b/ndk/platforms/android-8/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 <asm/signal.h>, 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[];