From 06e325ea8b01b1689f494887df86ebc13ed7cdce Mon Sep 17 00:00:00 2001 From: Daniel Connelly Date: Fri, 22 Nov 2024 07:36:31 -0800 Subject: [PATCH] more includes --- src/http/types.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http/types.cc b/src/http/types.cc index 94303da..bccb47f 100644 --- a/src/http/types.cc +++ b/src/http/types.cc @@ -31,7 +31,7 @@ void ResponseWriter::Write(std::string_view s) { if (s.size() == 0) return; if (fwrite(s.data(), 1, s.size(), stream_) == 0) { LOG(ERROR) << std::format("failed to write to socket: {}", - strerror(errno)); + std::strerror(errno)); throw InternalError("failed to write data"); } } @@ -66,7 +66,8 @@ void ResponseWriter::WriteData(std::string_view data) { sending_data_ = true; } if (fwrite(data.data(), 1, data.size(), stream_) < data.size()) { - LOG(ERROR) << std::format("failed to write data: {}", strerror(errno)); + LOG(ERROR) << std::format("failed to write data: {}", + std::strerror(errno)); throw InternalError("failed to send data"); } }