You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2019/07/30 12:29:40 UTC

[mesos] branch master updated: Windows: Fixed inclusion of kernel version helper.

This is an automated email from the ASF dual-hosted git repository.

josephwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new f840415  Windows: Fixed inclusion of kernel version helper.
f840415 is described below

commit f840415bfb218b38d43eb86b7b290b8e189690e5
Author: Joseph Wu <jo...@apache.org>
AuthorDate: Tue Jul 30 04:42:29 2019 -0700

    Windows: Fixed inclusion of kernel version helper.
    
    This file uses some stout helpers which are only available on Posix.
    The affected header is only included by Linux sources.
---
 src/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 218a75e..e0200eb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -237,7 +237,6 @@ set(COMMON_SRC
   common/build.cpp
   common/command_utils.cpp
   common/http.cpp
-  common/kernel_version.cpp
   common/protobuf_utils.cpp
   common/resources.cpp
   common/resource_quantities.cpp
@@ -247,6 +246,11 @@ set(COMMON_SRC
   common/validation.cpp
   common/values.cpp)
 
+if (NOT WIN32)
+  list(APPEND COMMON_SRC
+    common/kernel_version.cpp)
+endif ()
+
 set(CSI_SRC
   csi/types.cpp
   csi/metrics.cpp