Skip to content

Commit

Permalink
GUACAMOLE-1841: Header fix for socket-tcp.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuehlner committed Jun 7, 2024
1 parent 426a8fc commit cda4212
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libguac/socket-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@
#include "guacamole/socket.h"

#include <errno.h>

#ifdef WINDOWS_BUILD
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#endif

int guac_socket_tcp_connect(const char* hostname, const char* port) {

Expand Down Expand Up @@ -99,4 +105,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;

}
}

0 comments on commit cda4212

Please sign in to comment.