You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/07/07 01:47:41 UTC
mesos git commit: Added an ifdef linux guard in launch helper binary.
Repository: mesos
Updated Branches:
refs/heads/master 3fccd5390 -> efbf89cdb
Added an ifdef linux guard in launch helper binary.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/efbf89cd
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/efbf89cd
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/efbf89cd
Branch: refs/heads/master
Commit: efbf89cdbcd58dad09137ac6f8756f6ac13842ac
Parents: 3fccd53
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Jul 6 18:47:33 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Jul 6 18:47:33 2016 -0700
----------------------------------------------------------------------
src/slave/containerizer/mesos/launch.cpp | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/efbf89cd/src/slave/containerizer/mesos/launch.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/launch.cpp b/src/slave/containerizer/mesos/launch.cpp
index 09733ab..51f0c11 100644
--- a/src/slave/containerizer/mesos/launch.cpp
+++ b/src/slave/containerizer/mesos/launch.cpp
@@ -15,7 +15,9 @@
// limitations under the License.
#include <errno.h>
+#ifdef __linux__
#include <sched.h>
+#endif // __linux__
#include <string.h>
#include <iostream>