aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext
diff options
context:
space:
mode:
authorGravatar Adam Michalik <xyzzyz@google.com>2016-06-02 12:12:55 -0700
committerGravatar Adam Michalik <xyzzyz@google.com>2016-06-07 15:09:19 -0700
commitb97e2d145efb4d0b407d18b43d3b7bb38bccf61f (patch)
tree2795222c50640f6748d130cdd22123e6e7dbb3d0 /src/core/ext
parentda5d85d660495f68f03756590606ca59513c8b54 (diff)
Add C++ support for using external FD
Diffstat (limited to 'src/core/ext')
-rw-r--r--src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c4
-rw-r--r--src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c b/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
index 7d28dbf8a9..d3e27a5963 100644
--- a/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
+++ b/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
@@ -33,7 +33,7 @@
#include <grpc/support/port_platform.h>
-#ifdef GPR_POSIX_SOCKET
+#ifdef GPR_SUPPORT_CHANNELS_FROM_FD
#include <grpc/grpc.h>
@@ -85,4 +85,4 @@ grpc_channel *grpc_insecure_channel_create_from_fd(
"Failed to create client channel");
}
-#endif // GPR_POSIX_SOCKET
+#endif // GPR_SUPPORT_CHANNELS_FROM_FD
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 1807efc85d..11e5c45289 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
@@ -33,7 +33,7 @@
#include <grpc/support/port_platform.h>
-#ifdef GPR_POSIX_SOCKET
+#ifdef GPR_SUPPORT_CHANNELS_FROM_FD
#include <grpc/grpc.h>
#include <grpc/grpc_posix.h>
@@ -67,4 +67,4 @@ void grpc_server_add_insecure_channel_from_fd(grpc_server *server,
}
-#endif // GPR_POSIX_SOCKET
+#endif // GPR_SUPPORT_CHANNELS_FROM_FD