diff --git a/Makefile b/Makefile index 095e0aaabff..6bc8f0388aa 100644 --- a/Makefile +++ b/Makefile @@ -750,7 +750,7 @@ clean_libgrpc: LIBGRPC_TEST_UTIL_SRC = \ test/core/util/grpc_profiler.c \ - test/core/util/ipv6.c \ + test/core/util/ipv6_posix.c \ test/core/util/parse_hexstring.c \ test/core/util/port_posix.c \ test/core/util/slice_splitter.c \ diff --git a/build.json b/build.json index c395f10772a..550f3af1a67 100644 --- a/build.json +++ b/build.json @@ -271,7 +271,7 @@ "vs_project_guid": "{17BCAFC0-5FDC-4C94-AEB9-95F3E220614B}", "src": [ "test/core/util/grpc_profiler.c", - "test/core/util/ipv6.c", + "test/core/util/ipv6_posix.c", "test/core/util/parse_hexstring.c", "test/core/util/port_posix.c", "test/core/util/slice_splitter.c", diff --git a/test/core/util/ipv6.c b/test/core/util/ipv6_posix.c similarity index 95% rename from test/core/util/ipv6.c rename to test/core/util/ipv6_posix.c index 80f6a0ec911..25758f59fea 100644 --- a/test/core/util/ipv6.c +++ b/test/core/util/ipv6_posix.c @@ -31,6 +31,9 @@ * */ +#include +#ifdef GPR_POSIX_SOCKET + #include "test/core/util/ipv6.h" #include @@ -53,3 +56,5 @@ int grpc_ipv6_loopback_available() { } return ok; } + +#endif /* GPR_POSIX_SOCKET */ diff --git a/vsprojects/vs2013/grpc_test_util.vcxproj b/vsprojects/vs2013/grpc_test_util.vcxproj index 2c706196693..fa6f5b07ae1 100644 --- a/vsprojects/vs2013/grpc_test_util.vcxproj +++ b/vsprojects/vs2013/grpc_test_util.vcxproj @@ -77,7 +77,7 @@ - +