You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/03/24 10:27:01 UTC

[03/11] mesos git commit: Windows: Added Socket compatibility `#define`s to windows.hpp.

Windows: Added Socket compatibility `#define`s to windows.hpp.

Review: https://reviews.apache.org/r/44078/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/765ad6c3
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/765ad6c3
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/765ad6c3

Branch: refs/heads/master
Commit: 765ad6c3918442c2008ed6c0761c7e893d573a58
Parents: 4c4b391
Author: Alex Clemmer <cl...@gmail.com>
Authored: Thu Mar 24 09:32:23 2016 +0100
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Thu Mar 24 10:26:49 2016 +0100

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/765ad6c3/3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp
index ee13d12..a7f855d 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/windows.hpp
@@ -24,6 +24,7 @@
 #include <BaseTsd.h> // For `SSIZE_T`.
 // We include `Winsock2.h` before `Windows.h` explicitly to avoid symbold
 // re-definitions. This is a known pattern in the windows community.
+#include <WS2tcpip.h>
 #include <Winsock2.h>
 #include <Windows.h>
 
@@ -180,6 +181,7 @@ typedef SSIZE_T ssize_t;
 // the Windows versions of these flags to their POSIX equivalents so we don't
 // have to change any socket code.
 constexpr int SHUT_RD = SD_RECEIVE;
+constexpr int MSG_NOSIGNAL = 0; // `SIGPIPE` signal does not exist on Windows.
 
 // The following functions are usually macros on POSIX; we provide them here as
 // functions to avoid having global macros lying around. Note that these