--- src/client.c	2023-08-27 20:23:47.000000000 +0800
+++ src/client.c	2023-11-19 17:03:13.000000000 +0800
@@ -54,6 +54,10 @@
 	return GEMINI_OK;
 }
 
+#ifndef TCP_SYNCNT
+#define TCP_SYNCNT 6
+#endif
+
 static enum gemini_result
 gemini_connect(struct Curl_URL *uri, struct gemini_options *options,
 		struct gemini_response *resp, int *sfd)
