summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d33d023..72bf940 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2917,3 +2917,13 @@ void rb_w32_free_environ(char **env)
while (*t) free(*t++);
free(env);
}
+
+pid_t rb_w32_getpid(void)
+{
+ pid_t pid;
+
+ pid = _getpid();
+ if (IsWin95()) pid = -pid;
+
+ return pid;
+}