You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2018/01/24 20:40:42 UTC

mesos git commit: Windows: Implemented `os::eraseenv`.

Repository: mesos
Updated Branches:
  refs/heads/master adf49dba3 -> fa787fcc2


Windows: Implemented `os::eraseenv`.

For compatibility with the POSIX API, added `os::eraseenv` as a synonym
for `os::unsetenv` to Windows. This is necessary to fix the build.

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


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

Branch: refs/heads/master
Commit: fa787fcc26f979b388aaa6c68ff7846af065943f
Parents: adf49db
Author: James Peach <jp...@apache.org>
Authored: Wed Jan 24 12:37:22 2018 -0800
Committer: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Committed: Wed Jan 24 12:39:46 2018 -0800

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/fa787fcc/3rdparty/stout/include/stout/windows/os.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/windows/os.hpp b/3rdparty/stout/include/stout/windows/os.hpp
index 8c6f7a3..ec93520 100644
--- a/3rdparty/stout/include/stout/windows/os.hpp
+++ b/3rdparty/stout/include/stout/windows/os.hpp
@@ -174,6 +174,13 @@ inline void unsetenv(const std::string& key)
 }
 
 
+// NOTE: This exists for compatibility with the POSIX API.
+inline void eraseenv(const std::string& key)
+{
+  unsetenv(key);
+}
+
+
 // Suspends execution of the calling process until a child specified by `pid`
 // has changed state. Unlike the POSIX standard function `::waitpid`, this
 // function does not use -1 and 0 to signify errors and nonblocking return.