summaryrefslogtreecommitdiff
path: root/libguile/posix.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-09-14 11:50:35 +0200
committerAndy Wingo <wingo@pobox.com>2016-09-14 11:50:35 +0200
commitf9620e01c3d01abc2fd306ba5dc062a2f252eb97 (patch)
tree7001d5040b10d95325408d985767bc75b092c34c /libguile/posix.c
parentd0e6e3fff84ab5846eee1968e8a89c60b3821a43 (diff)
downloadguile-f9620e01c3d01abc2fd306ba5dc062a2f252eb97.tar.gz
Fix compile warning in posix.cv2.1.4
* libguile/posix.c (scm_system_star): Fix SIG_IGN usage to not emit a warning. Still broken on Windows64 and similar systems though!
Diffstat (limited to 'libguile/posix.c')
-rw-r--r--libguile/posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libguile/posix.c b/libguile/posix.c
index 5d0b1ed8f..495bfbbb8 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);