shithub: 9pro

Download patch

ref: 8a857152a44d9627d01db710dc1fcbb3c46d5537
parent: d1d3a8d1fe4af711ca6628b457489b4a56e0908c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Feb 23 19:01:07 EST 2023

no SOL_TCP

--- a/9gc.c
+++ b/9gc.c
@@ -155,7 +155,7 @@
 		if((f = socket(a->ai_family, a->ai_socktype, a->ai_protocol)) < 0)
 			continue;
 		if(connect(f, a->ai_addr, a->ai_addrlen) == 0){
-			setsockopt(f, SOL_TCP, TCP_NODELAY, &yes, sizeof(yes));
+			setsockopt(f, SOL_SOCKET, TCP_NODELAY, &yes, sizeof(yes));
 			break;
 		}
 		close(f);