diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | internal.h | 5 | ||||
-rw-r--r-- | ruby.c | 5 |
3 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Thu Nov 20 00:54:57 2014 Tanaka Akira <akr@fsij.org> + + * internal.h (ruby_init_setproctitle): Declare here. + Thu Nov 20 00:26:37 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (parser_here_document): append byte sequence directly to diff --git a/internal.h b/internal.h index 128c05379d..4e5c01a638 100644 --- a/internal.h +++ b/internal.h @@ -468,6 +468,11 @@ struct RHash { #define RHASH_SIZE(h) (RHASH(h)->ntbl ? (st_index_t)RHASH(h)->ntbl->num_entries : 0) #endif +/* missing/setproctitle.c */ +#ifndef HAVE_SETPROCTITLE +extern void ruby_init_setproctitle(int argc, char *argv[]); +#endif + /* class.c */ void rb_class_subclass_add(VALUE super, VALUE klass); void rb_class_remove_from_super_subclasses(VALUE); @@ -1930,10 +1930,7 @@ ruby_process_options(int argc, char **argv) iseq = process_options(argc, argv, cmdline_options_init(&opt)); #ifndef HAVE_SETPROCTITLE - { - extern void ruby_init_setproctitle(int argc, char *argv[]); - ruby_init_setproctitle(argc, argv); - } + ruby_init_setproctitle(argc, argv); #endif return (void*)(struct RData*)iseq; |