From 4b50761be878385904bd2c794c040cfe6d09945a Mon Sep 17 00:00:00 2001 From: wangyunlai Date: Tue, 1 Aug 2023 13:32:32 +0800 Subject: [PATCH] fix compile on gcc 12 (#218) ### What problem were solved in this pull request? Issue Number: close #217 Problem: compile error on gcc 12 ### What is changed and how it works? ### Other information --- src/observer/net/buffered_writer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/observer/net/buffered_writer.cpp b/src/observer/net/buffered_writer.cpp index 69271ca..6f844ad 100644 --- a/src/observer/net/buffered_writer.cpp +++ b/src/observer/net/buffered_writer.cpp @@ -12,6 +12,7 @@ See the Mulan PSL v2 for more details. */ // Created by Wangyunlai on 2023/06/16. // +#include #include #include @@ -131,4 +132,4 @@ RC BufferedWriter::flush_internal(int32_t size) } return rc; -} \ No newline at end of file +} -- GitLab