1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

fix GC_get_suspend_signal on Mac OS

* libguile/scmsigs.c (GC_get_suspend_signal): Fix the back-compatibility
  shim for this function to work on some other cases; I hadn't realized
  that gcconfig.h could set SIG_SUSPEND.  Thanks to Aleix Conchillo
  Flaqué for the report.
This commit is contained in:
Andy Wingo 2011-07-25 18:24:54 +02:00
parent 86e449a699
commit f29c300507

View file

@ -164,8 +164,10 @@ GC_get_suspend_signal (void)
return _SIGRTMIN + 6;
#elif defined SIGRTMIN
return SIGRTMIN + 6;
#elif defined __GLIBC__
return 32+6;
#else
#error what suspend signal to use?
return SIGUSR1;
#endif
}
#endif /* HAVE_GC_GET_SUSPEND_SIGNAL */