summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/process.c b/process.c
index 642c5982a6..c41924dbbf 100644
--- a/process.c
+++ b/process.c
@@ -1024,9 +1024,11 @@ int
rb_proc_exec(str)
const char *str;
{
+#ifndef _WIN32
const char *s = str;
char *ss, *t;
char **argv, **a;
+#endif
while (*str && ISSPACE(*str))
str++;
@@ -1089,7 +1091,9 @@ proc_spawn_v(argv, prog)
char **argv;
char *prog;
{
+#if defined(__human68k__)
char *extension;
+#endif
int status;
if (!prog)
@@ -1405,12 +1409,12 @@ rb_syswait(pid)
{
static int overriding;
#ifdef SIGHUP
- RETSIGTYPE (*hfunc)_((int));
+ RETSIGTYPE (*hfunc)_((int)) = 0;
#endif
#ifdef SIGQUIT
- RETSIGTYPE (*qfunc)_((int));
+ RETSIGTYPE (*qfunc)_((int)) = 0;
#endif
- RETSIGTYPE (*ifunc)_((int));
+ RETSIGTYPE (*ifunc)_((int)) = 0;
int status;
int i, hooked = Qfalse;
@@ -1650,7 +1654,9 @@ rb_f_sleep(argc, argv)
static VALUE
proc_getpgrp()
{
+#if defined(HAVE_GETPGRP) && defined(GETPGRP_VOID)
int pgrp;
+#endif
rb_secure(2);
#if defined(HAVE_GETPGRP) && defined(GETPGRP_VOID)