library: check not undef SIGLOST
sig.c had this odd logic where on non-Hurd systems it would undefine SIGLOST. Fine for Hurd or amd64 Linux systems. Bad for a sparc which has SIGLOST defined *and* is not Hurd. Just check its defined, its much simpler.
This commit is contained in:
@ -52,10 +52,6 @@
|
||||
# undef SIGSTKFLT
|
||||
#endif
|
||||
|
||||
#if !defined(__GNU__) && defined(SIGLOST)
|
||||
# undef SIGLOST
|
||||
#endif
|
||||
|
||||
#ifndef SIGRTMIN
|
||||
# warning Standards require that <signal.h> define SIGRTMIN; assuming 32
|
||||
# define SIGRTMIN 32
|
||||
@ -87,7 +83,7 @@ static const mapstruct sigtable[] = {
|
||||
{"ILL", SIGILL},
|
||||
{"INT", SIGINT},
|
||||
{"KILL", SIGKILL},
|
||||
#ifdef SIGLOST
|
||||
#if defined(__GNU__)
|
||||
{"LOST", SIGLOST}, /* Hurd-specific */
|
||||
#endif
|
||||
{"PIPE", SIGPIPE},
|
||||
|
Reference in New Issue
Block a user