You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2016/11/29 21:29:45 UTC
[12/14] mesos git commit: Added POSIX socket shutdown types to
Windows header.
Added POSIX socket shutdown types to Windows header.
This patch adds two missing BSD socket shutdown types
to a Windows header which maps these POSIX constants
to their Windows counterparts.
Review: https://reviews.apache.org/r/53990/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b3013ffb
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b3013ffb
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b3013ffb
Branch: refs/heads/master
Commit: b3013ffb0711ad70f91b50e90ea17674137c9c15
Parents: 9a4b5e6
Author: Greg Mann <gr...@mesosphere.io>
Authored: Tue Nov 29 12:18:14 2016 -0800
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Nov 29 12:19:17 2016 -0800
----------------------------------------------------------------------
3rdparty/stout/include/stout/windows.hpp | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b3013ffb/3rdparty/stout/include/stout/windows.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/windows.hpp b/3rdparty/stout/include/stout/windows.hpp
index 3782aa0..c384026 100644
--- a/3rdparty/stout/include/stout/windows.hpp
+++ b/3rdparty/stout/include/stout/windows.hpp
@@ -171,6 +171,8 @@ 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 SHUT_WR = SD_SEND;
+constexpr int SHUT_RDWR = SD_BOTH;
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