summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 95144f2eed..8862f51b7d 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1005,7 +1005,9 @@ set_arg0(val, id)
{
char *s;
long i;
+#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE)
static int len;
+#endif
if (origargv == 0) rb_raise(rb_eRuntimeError, "$0 not initialized");
StringValue(val);