summaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 7c5e28335..a9b1ef2f6 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3305,7 +3305,13 @@ rb_w32_getpid(void)
{
pid_t pid;
+#ifndef __BORLANDC__
pid = _getpid();
+#else
+#undef getpid
+ pid = getpid();
+#endif
+
if (IsWin95()) pid = -pid;
return pid;