X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=klibc%2Finclude%2Fsignal.h;h=ab3c98d6e4cfa7f27369b0ed035cf0acf26394e8;hp=1b439077f209fce8cfe71d7cdf97b52b75d8b5dc;hb=a6bece643c9e1132052c246eab099e7d9071ab63;hpb=60d1e263f0da2976938fa54efec88ab777a6b3c3 diff --git a/klibc/include/signal.h b/klibc/include/signal.h index 1b439077f..ab3c98d6e 100644 --- a/klibc/include/signal.h +++ b/klibc/include/signal.h @@ -16,7 +16,7 @@ /* glibc seems to use sig_atomic_t as "int" pretty much on all architectures. Do the same, but allow the architecture to override. */ -#ifdef _KLIBC_HAS_ARCH_SIG_ATOMIC_T +#ifndef _KLIBC_HAS_ARCH_SIG_ATOMIC_T typedef int sig_atomic_t; #endif @@ -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[];