diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-23 16:43:43 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-23 16:43:43 -0700 |
commit | cf8266532c18711e93ff0fa62e99776522c58066 (patch) | |
tree | 4899a606b86434b03f177d6a342264c1e3974800 /src | |
parent | df7e4228df0570110e355cde1c3a39383f3a1733 (diff) | |
parent | e7077b5c960775eaac2c69afec040735504ce060 (diff) |
Merge pull request #5909 from vjpai/make_building_great_again
Fix some issues in building under certain configurations
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/udp_server.c | 1 | ||||
-rw-r--r-- | src/core/surface/init.c | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/core/iomgr/udp_server.c b/src/core/iomgr/udp_server.c index efedd9f32e..e7853af58a 100644 --- a/src/core/iomgr/udp_server.c +++ b/src/core/iomgr/udp_server.c @@ -61,6 +61,7 @@ #include "src/core/iomgr/socket_utils_posix.h" #include "src/core/iomgr/unix_sockets_posix.h" #include "src/core/support/string.h" +#include <grpc/grpc.h> #include <grpc/support/alloc.h> #include <grpc/support/log.h> #include <grpc/support/sync.h> diff --git a/src/core/surface/init.c b/src/core/surface/init.c index 2ce50a0d82..233572a9f3 100644 --- a/src/core/surface/init.c +++ b/src/core/surface/init.c @@ -89,18 +89,21 @@ static void do_basic_init(void) { } static bool append_filter(grpc_channel_stack_builder *builder, void *arg) { - return grpc_channel_stack_builder_append_filter(builder, arg, NULL, NULL); + return grpc_channel_stack_builder_append_filter( + builder, (const grpc_channel_filter *)arg, NULL, NULL); } static bool prepend_filter(grpc_channel_stack_builder *builder, void *arg) { - return grpc_channel_stack_builder_prepend_filter(builder, arg, NULL, NULL); + return grpc_channel_stack_builder_prepend_filter( + builder, (const grpc_channel_filter *)arg, NULL, NULL); } static bool maybe_add_http_filter(grpc_channel_stack_builder *builder, void *arg) { grpc_transport *t = grpc_channel_stack_builder_get_transport(builder); if (t && strstr(t->vtable->name, "http")) { - return grpc_channel_stack_builder_prepend_filter(builder, arg, NULL, NULL); + return grpc_channel_stack_builder_prepend_filter( + builder, (const grpc_channel_filter *)arg, NULL, NULL); } return true; } |