At the moment, a few methods will be stubbed if
BOOST_ASIO_HAS_POSIX_STREAM_DESCRIPTOR is undefined.
The issue is that FileStream::get_size is undefined, so we're
getting link issues on Windows.
In the future, we might consider using asio::windows::stream_handle
on Windows.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
on_finish->complete(-EIO);
}
+template <typename I>
+void FileStream<I>::get_size(uint64_t* size, Context* on_finish) {
+ on_finish->complete(-EIO);
+}
+
#endif // BOOST_ASIO_HAS_POSIX_STREAM_DESCRIPTOR
} // namespace migration