ports/net/ccxstream/files/patch-ccxclientconn.c
Dmitry Marakasov 566fe2dd8d - Switch to options helpers
- Regenerate patches with `make makepatch`
2016-07-06 09:00:07 +00:00

14 lines
421 B
C

--- ccxclientconn.c.orig 2003-03-17 14:29:15 UTC
+++ ccxclientconn.c
@@ -51,6 +51,11 @@ static void cc_xstream_client_socket_set
i = 1;
setsockopt(sock, IPPROTO_TCP,TCP_NODELAY, &i, sizeof (i));
#endif /* TCP_NODELAY */
+
+#ifdef SO_KEEPALIVE
+ i = 1;
+ setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &i, sizeof (i));
+#endif /* SO_KEEPALIVE */
}
CcXstreamClientError cc_xstream_client_connect(const char *host,