From 562dda3f7d147d265094edc31bff67cdcbbd15c9 Mon Sep 17 00:00:00 2001
From: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
Date: Tue, 24 Nov 2020 00:20:34 +0300
Subject: [PATCH 12/12] Include <process.h> for getpid() explicitly on Windows

Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
---
 src/ray/raylet_client/raylet_client.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ray/raylet_client/raylet_client.cc b/src/ray/raylet_client/raylet_client.cc
index 77c4aff93..46ab511c3 100644
--- a/src/ray/raylet_client/raylet_client.cc
+++ b/src/ray/raylet_client/raylet_client.cc
@@ -22,6 +22,10 @@
 #include "ray/util/logging.h"
 #include "ray/util/util.h"
 
+#ifdef _WIN32
+#include <process.h> // for getpid() on Windows
+#endif
+
 using MessageType = ray::protocol::MessageType;
 
 namespace {
-- 
2.11.0


From 578491167107ed920ffe4623b85230b9b452b144 Mon Sep 17 00:00:00 2001
From: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
Date: Tue, 24 Nov 2020 00:20:34 +0300
Subject: [PATCH 12/12] Include <process.h> for getpid() explicitly on Windows

Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
---
 src/ray/util/util.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ray/util/util.h b/src/ray/util/util.h
index 5b678d4f2..85f47e66d 100644
--- a/src/ray/util/util.h
+++ b/src/ray/util/util.h
@@ -23,6 +23,10 @@
 #include <thread>
 #include <unordered_map>
 
+#ifdef _WIN32
+#include <process.h> // to ensure getpid() on Windows
+#endif
+
 // Boost forward-declarations (to avoid forcing slow header inclusions)
 namespace boost {
 
-- 
2.11.0


Patch util.h for wider coverage
Patch util.h for wider coverage

Signed-off-by: Vasily Litvinov <45989785b2757b7086737df70fb2aa6a7ade2d75@intel.com>
