summaryrefslogtreecommitdiff
path: root/libguile/scmsigs.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-07-25 18:24:54 +0200
committerAndy Wingo <wingo@pobox.com>2011-07-25 18:25:14 +0200
commitf29c300507da21a667f5b82e75300f8009eab9cc (patch)
tree8c572b648d9042ebb4293f460f6c6addce87d692 /libguile/scmsigs.c
parent86e449a69987ecb943b11198e065bbb22526f8c5 (diff)
downloadguile-f29c300507da21a667f5b82e75300f8009eab9cc.tar.gz
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.
Diffstat (limited to 'libguile/scmsigs.c')
-rw-r--r--libguile/scmsigs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index c324aaa0f..86fce0fe7 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -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 */