Propagate HAVE_PIPE2 compile time value to files that use it

The HAVE_PIPE2 is a variable that tracks whether a platform has the
system function pipe2() present.

This value was not propagated to the appropriate file that uses it,
causing its value to always be 0, and the wrong branch to be taken
at compile time.

This fixes it by propagating the value to the file.

Change-Id: I6cdc343da35a34be8d95fbea3543d080dbc1ec29
Reviewed-on: http://gerrit.cloudera.org:8080/7705
Reviewed-by: Henry Robinson <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/5c82f9d8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/5c82f9d8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/5c82f9d8

Branch: refs/heads/master
Commit: 5c82f9d84cc46735ed515a92d2e5d43fa5b88d84
Parents: 8609b09
Author: Sailesh Mukil <[email protected]>
Authored: Thu Aug 17 11:54:42 2017 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Thu Aug 17 23:05:56 2017 +0000

----------------------------------------------------------------------
 be/src/kudu/util/subprocess.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/5c82f9d8/be/src/kudu/util/subprocess.cc
----------------------------------------------------------------------
diff --git a/be/src/kudu/util/subprocess.cc b/be/src/kudu/util/subprocess.cc
index b072ed8..2812f76 100644
--- a/be/src/kudu/util/subprocess.cc
+++ b/be/src/kudu/util/subprocess.cc
@@ -52,6 +52,8 @@
 #include "kudu/util/stopwatch.h"
 #include "kudu/util/status.h"
 
+#include "common/config.h"
+
 using std::string;
 using std::unique_ptr;
 using std::vector;

Reply via email to