From e8f9083f070174a3ce7a99de248e1ed6ec903f84 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 25 Jan 2015 11:09:25 +0300 Subject: [PATCH] Fixed build [#METR-2944]. --- dbms/src/DataStreams/tests/native_streams.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dbms/src/DataStreams/tests/native_streams.cpp b/dbms/src/DataStreams/tests/native_streams.cpp index 2c8348ef252..5a2709d4eb4 100644 --- a/dbms/src/DataStreams/tests/native_streams.cpp +++ b/dbms/src/DataStreams/tests/native_streams.cpp @@ -6,8 +6,10 @@ #include #include -#include -#include +#include +#include +#include +#include #include #include @@ -106,7 +108,7 @@ int main(int argc, char ** argv) { QueryProcessingStage::Enum stage; SharedPtr in = table->read(column_names, 0, Context{}, Settings(), stage)[0]; - WriteBufferFromOStream out1(std::cout); + WriteBufferFromFileDescriptor out1(STDOUT_FILENO); CompressedWriteBuffer out2(out1); NativeBlockOutputStream out3(out2, Revision::get()); copyData(*in, out3); @@ -117,7 +119,7 @@ int main(int argc, char ** argv) { DataTypeFactory factory; - ReadBufferFromIStream in1(std::cin); + ReadBufferFromFileDescriptor in1(STDIN_FILENO); CompressedReadBuffer in2(in1); NativeBlockInputStream in3(in2, factory, Revision::get()); SharedPtr out = table->write(0);