This is an automated email from the ASF dual-hosted git repository.
serverglen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 4357ceee Fix json2pb compile error of examples (#2482)
4357ceee is described below
commit 4357ceeebabd5ad7a87d79621f1568473035390e
Author: Bright Chen <[email protected]>
AuthorDate: Wed Dec 27 12:55:02 2023 +0800
Fix json2pb compile error of examples (#2482)
---
example/asynchronous_echo_c++/server.cpp | 1 +
example/http_c++/http_server.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/example/asynchronous_echo_c++/server.cpp
b/example/asynchronous_echo_c++/server.cpp
index 8c7ced67..7aad241f 100644
--- a/example/asynchronous_echo_c++/server.cpp
+++ b/example/asynchronous_echo_c++/server.cpp
@@ -20,6 +20,7 @@
#include <gflags/gflags.h>
#include <butil/logging.h>
#include <brpc/server.h>
+#include <json2pb/pb_to_json.h>
#include "echo.pb.h"
DEFINE_bool(send_attachment, true, "Carry attachment along with response");
diff --git a/example/http_c++/http_server.cpp b/example/http_c++/http_server.cpp
index 202f55d1..3a806c43 100644
--- a/example/http_c++/http_server.cpp
+++ b/example/http_c++/http_server.cpp
@@ -21,6 +21,7 @@
#include <butil/logging.h>
#include <brpc/server.h>
#include <brpc/restful.h>
+#include <json2pb/pb_to_json.h>
#include "http.pb.h"
DEFINE_int32(port, 8010, "TCP Port of this server");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]