summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_wrapper_getpid.h
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_wrapper_getpid.h')
-rw-r--r--openmp/runtime/src/kmp_wrapper_getpid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_wrapper_getpid.h b/openmp/runtime/src/kmp_wrapper_getpid.h
index 5b4081a82a0..a9ddbe87d86 100644
--- a/openmp/runtime/src/kmp_wrapper_getpid.h
+++ b/openmp/runtime/src/kmp_wrapper_getpid.h
@@ -39,7 +39,9 @@
// "process.h".
#include <process.h>
// Let us simulate Unix.
+#if KMP_MSVC_COMPAT
typedef int pid_t;
+#endif
#define getpid _getpid
#define __kmp_gettid() GetCurrentThreadId()
OpenPOWER on IntegriCloud