summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c7
-rw-r--r--win32/win32.h9
2 files changed, 9 insertions, 7 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d10b68fbef..e9edfdfc14 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2332,13 +2332,6 @@ chown(const char *path, int owner, int group)
return 0;
}
-#include <signal.h>
-#ifndef SIGINT
-#define SIGINT 2
-#endif
-#ifndef SIGKILL
-#define SIGKILL 9
-#endif
int
kill(int pid, int sig)
{
diff --git a/win32/win32.h b/win32/win32.h
index c5873c62b7..b33d075e66 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -53,6 +53,7 @@ extern "C++" {
#include <process.h>
#include <time.h>
#include <math.h>
+#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#if !defined(__BORLANDC__)
@@ -273,6 +274,14 @@ extern char *rb_w32_strerror(int);
#endif
+#ifndef SIGINT
+#define SIGINT 2
+#endif
+#ifndef SIGKILL
+#define SIGKILL 9
+#endif
+
+
/* #undef va_start */
/* #undef va_end */