summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-01-18 19:08:07 +0900
committerGitHub <noreply@github.com>2022-01-18 19:08:07 +0900
commit6729258839467ffabf40e25e8510ee9f2a24864a (patch)
tree17a36c01d00ce540f106e90c56732a54c20e5592 /include/ruby/win32.h
parent3fb1f411ed8dcae693c2e9bdb68f4e9815cbb5f1 (diff)
include/ruby/win32.h: define HAVE_X for the missing prototypes (#5456)
Notes
Notes: Merged-By: kateinoigakukun
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 1d1f0ff9c1..4f1266599e 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -155,10 +155,14 @@ typedef int clockid_t;
#define read(f, b, s) rb_w32_read(f, b, s)
#define write(f, b, s) rb_w32_write(f, b, s)
#define getpid() rb_w32_getpid()
+#undef HAVE_GETPPID
+#define HAVE_GETPPID 1
#define getppid() rb_w32_getppid()
#define sleep(x) rb_w32_Sleep((x)*1000)
#define Sleep(msec) (void)rb_w32_Sleep(msec)
+#undef HAVE_EXECV
+#define HAVE_EXECV 1
#undef execv
#define execv(path,argv) rb_w32_uaspawn(P_OVERLAY,path,argv)
#undef isatty
@@ -309,7 +313,9 @@ 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);
-extern int kill(int, int);
+#undef HAVE_KILL
+#define HAVE_KILL 1
+extern int kill(rb_pid_t, int);
extern int fcntl(int, int, ...);
extern int rb_w32_set_nonblock(int);
extern rb_pid_t rb_w32_getpid(void);