You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ne...@apache.org on 2017/04/06 23:07:18 UTC

mesos git commit: Fixed compilation error on Linux with recent glibc.

Repository: mesos
Updated Branches:
  refs/heads/master eeafd0425 -> 8b92c9702


Fixed compilation error on Linux with recent glibc.

Recent versions of glibc deprecate the implicit inclusion of
<sys/sysmacros.h> via <sys/types.h>, so we should now include
<sys/sysmacros.h> directly when necessary.

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


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

Branch: refs/heads/master
Commit: 8b92c9702dcbfef42b63078fbf1df1e9160ba3a3
Parents: eeafd04
Author: Neil Conway <ne...@gmail.com>
Authored: Thu Apr 6 10:43:32 2017 -0700
Committer: Neil Conway <ne...@gmail.com>
Committed: Thu Apr 6 16:07:13 2017 -0700

----------------------------------------------------------------------
 src/linux/fs.cpp                                         | 2 ++
 src/slave/containerizer/mesos/isolators/gpu/isolator.cpp | 2 ++
 src/tests/containerizer/fs_tests.cpp                     | 2 ++
 3 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/8b92c970/src/linux/fs.cpp
----------------------------------------------------------------------
diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index 16c4583..c0b8cc3 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -23,6 +23,8 @@
 #include <linux/limits.h>
 #include <linux/unistd.h>
 
+#include <sys/sysmacros.h>
+
 #include <list>
 #include <set>
 #include <utility>

http://git-wip-us.apache.org/repos/asf/mesos/blob/8b92c970/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp b/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp
index d4ab539..3fd1495 100644
--- a/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp
+++ b/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp
@@ -16,6 +16,8 @@
 
 #include <stdint.h>
 
+#include <sys/sysmacros.h>
+
 #include <algorithm>
 #include <list>
 #include <map>

http://git-wip-us.apache.org/repos/asf/mesos/blob/8b92c970/src/tests/containerizer/fs_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/containerizer/fs_tests.cpp b/src/tests/containerizer/fs_tests.cpp
index 098f12b..0fa9451 100644
--- a/src/tests/containerizer/fs_tests.cpp
+++ b/src/tests/containerizer/fs_tests.cpp
@@ -18,6 +18,8 @@
 
 #include <gmock/gmock.h>
 
+#include <sys/sysmacros.h>
+
 #include <stout/foreach.hpp>
 #include <stout/gtest.hpp>
 #include <stout/hashset.hpp>