summaryrefslogtreecommitdiff
path: root/src/windows/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/port.h')
-rw-r--r--src/windows/port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/windows/port.h b/src/windows/port.h
index e9a0206..0da2eee 100644
--- a/src/windows/port.h
+++ b/src/windows/port.h
@@ -390,7 +390,10 @@ EXTERN_C PERFTOOLS_DLL_DECL void WriteToStderr(const char* buf, int len);
/* ----------------------------------- SYSTEM/PROCESS */
+#ifndef HAVE_PID_T
typedef int pid_t;
+#endif
+
#if __STDC__ && !defined(__MINGW32__)
inline pid_t getpid(void) { return _getpid(); }
#endif