chiark / gitweb /
[PATCH] gentoo rule update for raid devices.
[elogind.git] / klibc / include / signal.h
index 1b439077f209fce8cfe71d7cdf97b52b75d8b5dc..e78318f5f742400e256434d8fa4d4161dbcc8bef 100644 (file)
@@ -27,9 +27,20 @@ typedef int sig_atomic_t;
 #ifndef SA_NODEFER
 # define SA_NODEFER SA_NOMASK
 #endif
+/* Some architectures define NSIG and not _NSIG or vice versa */
 #ifndef NSIG
 # define NSIG _NSIG
 #endif
+#ifndef _NSIG
+# define _NSIG NSIG
+#endif
+
+/* If we don't have any real-time signals available to userspace,
+   hide them all */
+#if SIGRTMAX <= SIGRTMIN
+# undef SIGRTMIN
+# undef SIGRTMAX
+#endif
 
 __extern const char * const sys_siglist[];