Fix compile warning in posix.c v2.1.4
authorAndy Wingo <wingo@pobox.com>
Wed, 14 Sep 2016 09:50:35 +0000 (11:50 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 14 Sep 2016 09:50:35 +0000 (11:50 +0200)
* 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

index 5d0b1ed8f6c644993c0bc716c67ccde98b2f9ab9..495bfbbb8eb2be70bfa7635ac2b0ab6d743514ea 100644 (file)
@@ -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);