You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/06/27 18:51:24 UTC
git commit: Added missing os/exists.hpp to un-break the build.
Updated Branches:
refs/heads/master 4874afe90 -> 3e622d67a
Added missing os/exists.hpp to un-break the build.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mesos/commit/3e622d67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mesos/tree/3e622d67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mesos/diff/3e622d67
Branch: refs/heads/master
Commit: 3e622d67a0c0f178e8e006c35279ea863994495b
Parents: 4874afe
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Thu Jun 27 09:45:16 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Thu Jun 27 09:46:59 2013 -0700
----------------------------------------------------------------------
.../3rdparty/stout/include/stout/os/exists.hpp | 21 ++++++++++++++++++++
1 file changed, 21 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/3e622d67/3rdparty/libprocess/3rdparty/stout/include/stout/os/exists.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os/exists.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os/exists.hpp
new file mode 100644
index 0000000..0b30dbe
--- /dev/null
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os/exists.hpp
@@ -0,0 +1,21 @@
+#ifndef __STOUT_OS_EXISTS_HPP__
+#define __STOUT_OS_EXISTS_HPP__
+
+#include <sys/stat.h>
+
+#include <string>
+
+namespace os {
+
+inline bool exists(const std::string& path)
+{
+ struct stat s;
+ if (::lstat(path.c_str(), &s) < 0) {
+ return false;
+ }
+ return true;
+}
+
+} // namespace os {
+
+#endif // __STOUT_OS_EXISTS_HPP__