Skip to content

Commit

Permalink
GUACAMOLE-1841: Windows fixes for socket-tcp.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuehlner committed Nov 1, 2024
1 parent 18ba978 commit 26e7484
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/libguac/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,24 @@

#include <errno.h>
#include <fcntl.h>

#ifdef WINDOWS_BUILD
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netdb.h>
#include <netinet/in.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>
#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;

Expand Down

0 comments on commit 26e7484

Please sign in to comment.