diff --git a/src/client.c b/src/client.c
index b6107501f4a5abac8d7be6eb654ec116fe22be40..2f28ab154067849963925a8b75fbcdaf6be77d9c 100644
--- a/src/client.c
+++ b/src/client.c
@@ -12,6 +12,7 @@ #include <gmni/certs.h>
#include <gmni/gmni.h>
#include <gmni/tofu.h>
#include <gmni/url.h>
+#include <netinet/tcp.h>
static enum gemini_result
gemini_get_addrinfo(struct Curl_URL *uri, struct gemini_options *options,
@@ -69,6 +70,8 @@ *sfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
if (*sfd == -1) {
continue;
}
int synRetries = 3;
setsockopt(*sfd, IPPROTO_TCP, TCP_SYNCNT, &synRetries, sizeof(synRetries));
if (connect(*sfd, rp->ai_addr, rp->ai_addrlen) != -1) {
break;
}
text/gemini
This content has been proxied by September (ba2dc).