mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 06:20:23 +02:00
(scm_sigaction_for_thread): Use scm_to_long for
sa_handler, needs to be a long on 64-bit systems where int is only 32 bits.
This commit is contained in:
parent
8b3747f9c6
commit
3843f734d1
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
|
|||
|| SCM_NUM2LONG (2, handler) == (long) SIG_IGN)
|
||||
{
|
||||
#ifdef HAVE_SIGACTION
|
||||
action.sa_handler = (SIGRETTYPE (*) (int)) scm_to_int (handler);
|
||||
action.sa_handler = (SIGRETTYPE (*) (int)) scm_to_long (handler);
|
||||
#else
|
||||
chandler = (SIGRETTYPE (*) (int)) scm_to_int (handler);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue