You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by id...@apache.org on 2015/05/30 00:31:27 UTC
mesos git commit: Explicitly include linux/sched.h for old
distributions.
Repository: mesos
Updated Branches:
refs/heads/master b8b9255eb -> 76873d345
Explicitly include linux/sched.h for old distributions.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/76873d34
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/76873d34
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/76873d34
Branch: refs/heads/master
Commit: 76873d345dc67a978c2514803427e87aa115c585
Parents: b8b9255
Author: Ian Downes <id...@twitter.com>
Authored: Fri May 29 15:28:30 2015 -0700
Committer: Ian Downes <id...@twitter.com>
Committed: Fri May 29 15:28:30 2015 -0700
----------------------------------------------------------------------
src/linux/sched.hpp | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/76873d34/src/linux/sched.hpp
----------------------------------------------------------------------
diff --git a/src/linux/sched.hpp b/src/linux/sched.hpp
index 2ae80be..8cb0653 100644
--- a/src/linux/sched.hpp
+++ b/src/linux/sched.hpp
@@ -25,6 +25,10 @@
#endif
#include <sched.h>
+// Some old distributions, e.g., Redhat 5.5, do not correctly include
+// linux/sched.h.
+#include <linux/sched.h>
+
#include <sys/types.h>