aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util
diff options
context:
space:
mode:
authorGravatar jtattermusch <jtattermusch@google.com>2014-12-08 15:13:41 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2014-12-08 18:50:13 -0800
commit97fb3f6481cc79ed9409320fcb274b9ea7442aaf (patch)
treee8df2e098bba2a5e8b23136cdd94b66247f68ca1 /test/core/util
parentba22e87c6874d240ecd821d0c30c5f01d62c2fdd (diff)
Add mako templates to generate MS Visual Studio projects.
Current state for Windows platform: -- gpr and grpc_test_util can be compiled -- gpr_log_test and gpr_cmdline_test pass Change on 2014/12/08 by jtattermusch <jtattermusch@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81615574
Diffstat (limited to 'test/core/util')
-rw-r--r--test/core/util/port_posix.c (renamed from test/core/util/port.c)5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/util/port.c b/test/core/util/port_posix.c
index 133b53fd2b..ab0dcf7d11 100644
--- a/test/core/util/port.c
+++ b/test/core/util/port_posix.c
@@ -31,6 +31,9 @@
*
*/
+#include <grpc/support/port_platform.h>
+#ifdef GPR_POSIX_SOCKET
+
#include "test/core/util/port.h"
#include <netinet/in.h>
@@ -143,3 +146,5 @@ int grpc_pick_unused_port_or_die() {
GPR_ASSERT(port > 0);
return port;
}
+
+#endif /* GPR_POSIX_SOCKET */