ruby-changes:64626
From: Nobuyoshi <ko1@a...>
Date: Sun, 27 Dec 2020 17:51:50 +0900 (JST)
Subject: [ruby-changes:64626] 90dd482061 (master): win32: Declared wait and fixed the return type
https://git.ruby-lang.org/ruby.git/commit/?id=90dd482061 From 90dd482061ab014a6137c2df2239cc6106974dbb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 27 Dec 2020 16:32:08 +0900 Subject: win32: Declared wait and fixed the return type diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 0025948..4978655 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -304,7 +304,8 @@ extern int rb_w32_usymlink(const char *src, const char *link); https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L304 extern int gettimeofday(struct timeval *, struct timezone *); extern int clock_gettime(clockid_t, struct timespec *); extern int clock_getres(clockid_t, struct timespec *); -extern rb_pid_t waitpid (rb_pid_t, int *, int); +extern rb_pid_t waitpid(rb_pid_t, int *, int); +extern rb_pid_t wait(int *); extern rb_pid_t rb_w32_uspawn(int, const char *, const char*); extern rb_pid_t rb_w32_uaspawn(int, const char *, char *const *); extern rb_pid_t rb_w32_uaspawn_flags(int, const char *, char *const *, DWORD); diff --git a/win32/win32.c b/win32/win32.c index 5985875..d04985e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5211,7 +5211,7 @@ symlink(const char *src, const char *link) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5211 } /* License: Ruby's */ -int +rb_pid_t wait(int *status) { return waitpid(-1, status, 0); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/