diff --git a/tdutils/td/utils/port/StdStreams.cpp b/tdutils/td/utils/port/StdStreams.cpp index 909dd3436..1fc4ad20e 100644 --- a/tdutils/td/utils/port/StdStreams.cpp +++ b/tdutils/td/utils/port/StdStreams.cpp @@ -90,7 +90,6 @@ class BufferedStdinImpl { td::thread read_thread_; std::atomic close_flag_{false}; - void read_loop() { while (!close_flag_) { auto slice = writer_.prepare_append(); @@ -106,7 +105,7 @@ class BufferedStdinImpl { } Result read(MutableSlice slice) { - auto native_fd = info_.native_fd().io_handle(); + auto native_fd = info_.native_fd().fd(); DWORD bytes_read = 0; auto res = ReadFile(native_fd, slice.data(), narrow_cast(slice.size()), &bytes_read, nullptr); if (res) { @@ -114,7 +113,6 @@ class BufferedStdinImpl { } return OS_ERROR(PSLICE() << "Read from [fd = " << native_fd << "] has failed"); } - }; void BufferedStdinImplDeleter::operator()(BufferedStdinImpl *impl) { impl->close();