You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jp...@apache.org on 2017/11/03 17:11:20 UTC
[3/6] mesos git commit: Fixed compilation error on Linux with recent
glibc.
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/83d7aafb
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/83d7aafb
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/83d7aafb
Branch: refs/heads/1.2.x
Commit: 83d7aafbb1756534ae6c0efdce484d298b9694bd
Parents: 386d9f6
Author: Neil Conway <ne...@gmail.com>
Authored: Thu Apr 6 10:43:32 2017 -0700
Committer: James Peach <jp...@apache.org>
Committed: Fri Nov 3 09:41:12 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/83d7aafb/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/83d7aafb/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/83d7aafb/src/tests/containerizer/fs_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/containerizer/fs_tests.cpp b/src/tests/containerizer/fs_tests.cpp
index f726fb0..00f3483 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>