diff options
author | 2015-08-26 14:35:52 -0700 | |
---|---|---|
committer | 2015-08-26 14:35:52 -0700 | |
commit | 3d5ba2f499907ae6857eb2cad4aca3ede8a98cbf (patch) | |
tree | 58e093b769ec2f8796f6e878f44b845adbb43507 | |
parent | 1e27e7d605e43ac6a4d7d2ace75c079f3569ddc0 (diff) |
Make port_windows compile again
-rw-r--r-- | test/core/util/port_windows.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/core/util/port_windows.c b/test/core/util/port_windows.c index 7275d56501..2f64626cf3 100644 --- a/test/core/util/port_windows.c +++ b/test/core/util/port_windows.c @@ -35,7 +35,6 @@ #include "test/core/util/test_config.h" #if defined(GPR_WINSOCK_SOCKET) && defined(GRPC_TEST_PICK_PORT) -#include "src/core/iomgr/sockaddr_utils.h" #include "test/core/util/port.h" #include <process.h> @@ -43,8 +42,14 @@ #include <errno.h> #include <string.h> +#include <grpc/grpc.h> +#include <grpc/support/alloc.h> #include <grpc/support/log.h> +#include "src/core/support/env.h" +#include "src/core/httpcli/httpcli.h" +#include "src/core/iomgr/sockaddr_utils.h" + #define NUM_RANDOM_PORTS_TO_PICK 100 static int is_port_available(int *port, int is_tcp) { @@ -99,6 +104,11 @@ static int is_port_available(int *port, int is_tcp) { return 1; } +typedef struct portreq { + grpc_pollset pollset; + int port; +} portreq; + static void got_port_from_server(void *arg, const grpc_httpcli_response *response) { size_t i; |