[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/02: Fix compile warning in posix.c
From: |
Andy Wingo |
Subject: |
[Guile-commits] 02/02: Fix compile warning in posix.c |
Date: |
Wed, 14 Sep 2016 11:42:01 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit f9620e01c3d01abc2fd306ba5dc062a2f252eb97
Author: Andy Wingo <address@hidden>
Date: Wed Sep 14 11:50:35 2016 +0200
Fix compile warning in posix.c
* libguile/posix.c (scm_system_star): Fix SIG_IGN usage to not emit a
warning. Still broken on Windows64 and similar systems though!
---
libguile/posix.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 5d0b1ed..495bfbb 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1483,9 +1483,11 @@ SCM_DEFINE (scm_system_star, "system*", 0, 0, 1,
scm_dynwind_begin (0);
/* Make sure the child can't kill us (as per normal system call). */
- scm_dynwind_sigaction (SIGINT, scm_from_ulong (SIG_IGN), SCM_UNDEFINED);
+ scm_dynwind_sigaction (SIGINT, scm_from_long ((long) SIG_IGN),
+ SCM_UNDEFINED);
#ifdef SIGQUIT
- scm_dynwind_sigaction (SIGQUIT, scm_from_ulong (SIG_IGN), SCM_UNDEFINED);
+ scm_dynwind_sigaction (SIGQUIT, scm_from_long ((long) SIG_IGN),
+ SCM_UNDEFINED);
#endif
res = scm_open_process (scm_nullstr, prog, args);