fix up leftover, incorrect NSIG definitions in arch-specific signal.h
[musl] / arch / arm / bits / signal.h
index 16f029b..9323b11 100644 (file)
@@ -1,5 +1,5 @@
 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
- || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
 typedef struct {
        unsigned long __regs[21];
@@ -23,7 +23,7 @@ typedef struct __ucontext {
 #define SA_RESETHAND  0x80000000
 #define SA_RESTORER   0x04000000
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 struct sigcontext
 {
        unsigned long trap_no, error_code, oldmask;
@@ -33,7 +33,6 @@ struct sigcontext
        unsigned long arm_ip, arm_sp, arm_lr, arm_pc;
        unsigned long arm_cpsr, fault_address;
 };
-#define NSIG      64
 #endif
 
 #endif
@@ -71,3 +70,5 @@ struct sigcontext
 #define SIGPWR    30
 #define SIGSYS    31
 #define SIGUNUSED SIGSYS
+
+#define _NSIG 65