From 5923d6d41b98df999c7a07cae74b11b9e1ae8e69 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Fri, 17 Aug 2018 17:00:44 +0300 Subject: [PATCH] tg_cli works under windows GitOrigin-RevId: 30810ab2d69390c5ec842cfffd686bfa2043ef59 --- td/telegram/cli.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 8eae1c199..2cb41b6fc 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -644,7 +644,7 @@ class CliClient final : public Actor { #ifdef USE_READLINE FileFd stdin_; #else - using StreamConnection = BufferedFd; + using StreamConnection = BufferedFd; StreamConnection stdin_; #endif static CliClient *instance_; @@ -752,7 +752,7 @@ class CliClient final : public Actor { explicit StdinReader(ActorShared parent) : parent_(std::move(parent)) { } void start_up() override { - stdin_ = &Fd::Stdin(); + stdin_ = &Stdin(); set_timeout_in(0.001); } void timeout_expired() override { @@ -769,7 +769,7 @@ class CliClient final : public Actor { } private: - Fd *stdin_ = nullptr; + FileFd *stdin_ = nullptr; string data_; ActorShared parent_; void process() {