#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];
#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;
#define SIGPWR 30
#define SIGSYS 31
#define SIGUNUSED SIGSYS
+
+#define _NSIG 65