struct sigaltstack is already defined from newlib's sys/signal.h which
is included from ucontext.h. To avoid redinition error while compiling,
struct sigaltstack definition is disabled. We also disable the SA_* and SIG*
definitions since they are already defined in newlib's origin code.
Signed-off-by: Charalampos Mainas <Charalampos.Mainas@neclab.eu>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
} mcontext_t;
#endif
+#if 0
struct sigaltstack {
void *ss_sp;
int ss_flags;
size_t ss_size;
};
+#endif
typedef struct __ucontext {
unsigned long uc_flags;
unsigned long __fpregs_mem[64];
} ucontext_t;
+#if 0
#define SA_NOCLDSTOP 1
#define SA_NOCLDWAIT 2
#define SA_SIGINFO 4
#define SA_NODEFER 0x40000000
#define SA_RESETHAND 0x80000000
#define SA_RESTORER 0x04000000
+#endif
#endif
+#if 0
#define SIGHUP 1
#define SIGINT 2
#define SIGQUIT 3
#define SIGUNUSED SIGSYS
#define _NSIG 65
+#endif