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 7767a0d commit b929dea
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 b929dea

Please sign in to comment.