summaryrefslogtreecommitdiff
path: root/win32
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 /win32
parent3fb1f411ed8dcae693c2e9bdb68f4e9815cbb5f1 (diff)
include/ruby/win32.h: define HAVE_X for the missing prototypes (#5456)
Notes
Notes: Merged-By: kateinoigakukun
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub18
-rw-r--r--win32/win32.c2
2 files changed, 19 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 7d78c6ad7c..a339061459 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -850,6 +850,24 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_TZNAME 1
#define HAVE_DAYLIGHT 1
#define HAVE_GMTIME_R 1
+#define HAVE_CHMOD 1
+#define HAVE_CHOWN 1
+#define HAVE_DUP 1
+#define HAVE_EXECL 1
+#define HAVE_EXECLE 1
+#define HAVE_EXECV 1
+#define HAVE_EXECVE 1
+#define HAVE_GETEGID 1
+#define HAVE_GETEUID 1
+#define HAVE_GETGID 1
+#define HAVE_GETUID 1
+#define HAVE_PCLOSE 1
+#define HAVE_PIPE 1
+#define HAVE_POPEN 1
+#define HAVE_SHUTDOWN 1
+#define HAVE_SYSTEM 1
+#define HAVE_TZSET 1
+#define HAVE_UMASK 1
!if $(RT_VER) > 120
#define HAVE_QSORT_S
!endif
diff --git a/win32/win32.c b/win32/win32.c
index d9e719af00..832725a645 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4871,7 +4871,7 @@ rb_w32_ulchown(const char *path, int owner, int group)
/* License: Ruby's */
int
-kill(int pid, int sig)
+kill(rb_pid_t pid, int sig)
{
int ret = 0;
DWORD err;