fix windows build

pull/6610/head
Adam Michalik 9 years ago
parent 0872d0894c
commit a24d153619
  1. 4
      include/grpc/grpc_posix.h
  2. 4
      src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c

@ -49,8 +49,6 @@ extern "C" {
* functionality on top of GRPC Core. * functionality on top of GRPC Core.
*/ */
#ifdef GPR_SUPPORT_CHANNELS_FROM_FD
/** Create a client channel to 'target' using file descriptor 'fd'. The 'target' /** Create a client channel to 'target' using file descriptor 'fd'. The 'target'
argument will be used to indicate the name for this channel. See the comment argument will be used to indicate the name for this channel. See the comment
for grpc_insecure_channel_create for description of 'args' argument. */ for grpc_insecure_channel_create for description of 'args' argument. */
@ -65,8 +63,6 @@ GRPCAPI void grpc_server_add_insecure_channel_from_fd(grpc_server *server,
grpc_completion_queue *cq, grpc_completion_queue *cq,
int fd); int fd);
#endif // GPR_SUPPORT_CHANNELS_FROM_FD
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

@ -31,12 +31,12 @@
* *
*/ */
#include <grpc/grpc.h>
#include <grpc/grpc_posix.h>
#include <grpc/support/port_platform.h> #include <grpc/support/port_platform.h>
#ifdef GPR_SUPPORT_CHANNELS_FROM_FD #ifdef GPR_SUPPORT_CHANNELS_FROM_FD
#include <grpc/grpc.h>
#include <grpc/grpc_posix.h>
#include <grpc/support/string_util.h> #include <grpc/support/string_util.h>
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"

Loading…
Cancel
Save