diff --git a/include/grpc/grpc_posix.h b/include/grpc/grpc_posix.h index cff090062067c2255b1f060420ed9b7fb34233f2..9742b83374a453d08fe8099273a6fef09cea03b1 100644 --- a/include/grpc/grpc_posix.h +++ b/include/grpc/grpc_posix.h @@ -49,8 +49,6 @@ extern "C" { * functionality on top of GRPC Core. */ -#ifdef GPR_SUPPORT_CHANNELS_FROM_FD - /** 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 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, int fd); -#endif // GPR_SUPPORT_CHANNELS_FROM_FD - #ifdef __cplusplus } #endif diff --git a/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c b/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c index 313e9b9208c7a431b6d21da6c8c91342fdafc16c..b1c7a389dd8c5ee49f0e079f5749892af19e56e7 100644 --- a/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c +++ b/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c @@ -31,12 +31,12 @@ * */ +#include <grpc/grpc.h> +#include <grpc/grpc_posix.h> #include <grpc/support/port_platform.h> #ifdef GPR_SUPPORT_CHANNELS_FROM_FD -#include <grpc/grpc.h> -#include <grpc/grpc_posix.h> #include <grpc/support/string_util.h> #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"