diff --git a/src/libguac/socket-tcp.c b/src/libguac/socket-tcp.c index 7e41d0218..3dee702e3 100644 --- a/src/libguac/socket-tcp.c +++ b/src/libguac/socket-tcp.c @@ -22,15 +22,22 @@ #include "guacamole/socket.h" #include + +#ifdef WINDOWS_BUILD +#include +#include +#else #include #include #include +#endif int guac_socket_tcp_connect(const char* hostname, const char* port) { int retval; - int fd = EBADFD; + int fd = -1; + struct addrinfo* addresses; struct addrinfo* current_address; @@ -99,4 +106,4 @@ int guac_socket_tcp_connect(const char* hostname, const char* port) { /* Return the fd, or the error message if the socket connection failed. */ return fd; -} \ No newline at end of file +}