Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/lighttpd-1.4.45.local.patch

Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
--- lighttpd-1.4.45/src/network.c.orig	2017-01-14 05:05:17.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
+++ lighttpd-1.4.45/src/network.c	2018-02-17 20:39:33.920000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
@@ -53,6 +53,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 void
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 network_accept_tcp_nagle_disable (const int fd)
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 {
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
     static int noinherit_tcpnodelay = -1;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
     int opt;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
@@ -70,6 +71,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
     opt = 1;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
     (void)setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 static handler_t network_server_handle_fdevent(server *srv, void *context, int revents) {
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
@@ -445,6 +447,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 		goto error_free_socket;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 	}
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 	if (srv_socket->addr.plain.sa_family != AF_UNIX) {
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 		val = 1;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 		if (setsockopt(srv_socket->fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)) < 0) {
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
@@ -452,6 +455,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 			goto error_free_socket;
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 		}
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 	}
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 	if (0 != bind(srv_socket->fd, (struct sockaddr *) &(srv_socket->addr), addr_len)) {
Lucio Andrés Illanes Albornoz (arab, vxp) 867ba9
 		switch(srv_socket->addr.plain.sa_family) {