From 26e7484db0a847e7e5b579ab1dd5b480f2fc28a8 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Fri, 7 Jun 2024 23:06:06 +0000 Subject: [PATCH] GUACAMOLE-1841: Windows fixes for socket-tcp.c. --- src/libguac/tcp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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;