1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

win32: Declared wait and fixed the return type

This commit is contained in:
Nobuyoshi Nakada 2020-12-27 16:32:08 +09:00
parent 260d626ef6
commit 90dd482061
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 3 additions and 2 deletions

View file

@ -304,7 +304,8 @@ extern int rb_w32_usymlink(const char *src, const char *link);
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);

View file

@ -5211,7 +5211,7 @@ symlink(const char *src, const char *link)
}
/* License: Ruby's */
int
rb_pid_t
wait(int *status)
{
return waitpid(-1, status, 0);