aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-01-23 07:44:02 -0800
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-01-23 07:44:02 -0800
commitac139dead15bf9cb8da75340c6fb93225a11ef7c (patch)
tree20db86faa1cb4bcef299af17a93de7f7d6e44fe6 /include
parentbdc52f6d3197f72cd495048d93f2a3a10cff3b38 (diff)
parente86076159ce9239479e454b2d2cc4b7858c48479 (diff)
Merge pull request #153 from ctiller/windows-fixes
Windows fixes
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/port_platform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/support/port_platform.h b/include/grpc/support/port_platform.h
index 05a5bbe1bc..118a919aee 100644
--- a/include/grpc/support/port_platform.h
+++ b/include/grpc/support/port_platform.h
@@ -132,6 +132,14 @@
#error Must define exactly one of GPR_CPU_LINUX, GPR_CPU_POSIX, GPR_WIN32
#endif
+#if defined(GPR_POSIX_MULTIPOLL_WITH_POLL) && !defined(GPR_POSIX_SOCKET)
+#error Must define GPR_POSIX_SOCKET to use GPR_POSIX_MULTIPOLL_WITH_POLL
+#endif
+
+#if defined(GPR_POSIX_SOCKET) + defined(GPR_WIN32) != 1
+#error Must define exactly one of GPR_POSIX_POLLSET, GPR_WIN32
+#endif
+
typedef int16_t gpr_int16;
typedef int32_t gpr_int32;
typedef int64_t gpr_int64;