summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 95a6e4d..136706a 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -141,7 +141,7 @@ extern "C++" {
#define umask _umask
#define unlink _unlink
#define write _write
-#define getpid _getpid
+#define getpid rb_w32_getpid
#define sleep(x) rb_w32_sleep((x)*1000)
#define utime _utime
#define vsnprintf _vsnprintf
@@ -201,6 +201,7 @@ extern int gettimeofday(struct timeval *, struct timezone *);
extern pid_t waitpid (pid_t, int *, int);
extern int do_spawn(char *);
extern int kill(int, int);
+extern pid_t rb_w32_getpid(void);
#ifndef __BORLANDC__
extern int isinf(double);
extern int isnan(double);