Make SA_SIGINFO conditional

SA_SIGINFO isn't defined on hurd, so check before setting it.

This patch was used in Debian since 2010-08-01.
This commit is contained in:
Adrian Knoth 2012-05-29 21:09:33 +02:00
parent 16cbb24ebf
commit 007cdc3714
1 changed files with 2 additions and 0 deletions

View File

@ -177,7 +177,9 @@ int setup_sigsegv() {
memset(&action, 0, sizeof(action));
action.sa_sigaction = signal_segv;
#ifdef SA_SIGINFO
action.sa_flags = SA_SIGINFO;
#endif
if(sigaction(SIGSEGV, &action, NULL) < 0) {
jack_error("sigaction failed. errno is %d (%s)", errno, strerror(errno));
return 0;