aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp/helloworld/greeter_server.cc
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-01-11 01:03:09 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-01-13 02:55:13 +0100
commit24263c3f7a3b04f073712e40376829e47772d7db (patch)
tree8ef2fc0492ebb36cb437b134ae36fe6ce69ea201 /examples/cpp/helloworld/greeter_server.cc
parent6cf58c81731343e0ffb134febd3e576425399e5e (diff)
Fixing a few items with the new Bazel BUILD system:
-) Fixing Bazel 0.4.x breakage -) Adding helloworld BUILD examples -) Fixing grpc++ missing files. -) Adding helloworld example as a test for Bazel basic.
Diffstat (limited to 'examples/cpp/helloworld/greeter_server.cc')
-rw-r--r--examples/cpp/helloworld/greeter_server.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/cpp/helloworld/greeter_server.cc b/examples/cpp/helloworld/greeter_server.cc
index 9eab32c62b..c8a6d8ae86 100644
--- a/examples/cpp/helloworld/greeter_server.cc
+++ b/examples/cpp/helloworld/greeter_server.cc
@@ -37,7 +37,11 @@
#include <grpc++/grpc++.h>
+#ifdef BAZEL_BUILD
+#include "examples/protos/helloworld.grpc.pb.h"
+#else
#include "helloworld.grpc.pb.h"
+#endif
using grpc::Server;
using grpc::ServerBuilder;