diff --git a/src/libguac/tcp.c b/src/libguac/tcp.c index 03b0d9f58..4163121fd 100644 --- a/src/libguac/tcp.c +++ b/src/libguac/tcp.c @@ -23,17 +23,24 @@ #include #include + +#ifdef WINDOWS_BUILD +#include +#include +#else #include #include #include #include #include +#endif int guac_tcp_connect(const char* hostname, const char* port, const int timeout) { int retval; - int fd = EBADFD; + int fd = -1; + struct addrinfo* addresses; struct addrinfo* current_address;