>> - size_t count = from_st->st_size; >> #if defined _GLIBCXX_USE_SENDFILE && ! defined _GLIBCXX_FILESYSTEM_IS_WINDOWS >> + size_t count = from_st->st_size; > > that looks right to me. it works and i commited it. I didn't think we had sendfile(2).