aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/wakeup_fd_pipe.c
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-30 20:23:27 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-30 20:23:27 +0100
commitc8fd2d1c01f81c4a4f8a6b8a239e0f809fd1001d (patch)
tree2bf6b4457e07ef15690f0381fd6d30c0bad4f5f2 /src/core/iomgr/wakeup_fd_pipe.c
parentb24b50094c2eb6d617847ff957afcc58ac5c569c (diff)
Properly selecting chunks of code for the wakeup fd codepath.
Diffstat (limited to 'src/core/iomgr/wakeup_fd_pipe.c')
-rw-r--r--src/core/iomgr/wakeup_fd_pipe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/iomgr/wakeup_fd_pipe.c b/src/core/iomgr/wakeup_fd_pipe.c
index f36e6eeb9f..63be51133e 100644
--- a/src/core/iomgr/wakeup_fd_pipe.c
+++ b/src/core/iomgr/wakeup_fd_pipe.c
@@ -31,8 +31,11 @@
*
*/
-/* TODO(klempner): Allow this code to be disabled. */
-#include "src/core/iomgr/wakeup_fd_posix.h"
+#include <grpc/support/port_platform.h>
+
+#ifdef GPR_POSIX_WAKEUP_FD
+
+#include "src/core/iomgr/wakeup_fd.h"
#include <errno.h>
#include <string.h>
@@ -91,3 +94,4 @@ const grpc_wakeup_fd_vtable pipe_wakeup_fd_vtable = {
pipe_create, pipe_consume, pipe_wakeup, pipe_destroy, pipe_check_availability
};
+#endif /* GPR_POSIX_WAKUP_FD */