From 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 17:12:47 +0000 Subject: Rename all patches that contain '::' as a path separator, and use '__' instead. --- net/nocatsplash/files/patch-src__http.c | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 net/nocatsplash/files/patch-src__http.c (limited to 'net/nocatsplash/files/patch-src__http.c') diff --git a/net/nocatsplash/files/patch-src__http.c b/net/nocatsplash/files/patch-src__http.c new file mode 100644 index 000000000000..fe05e81b9ac9 --- /dev/null +++ b/net/nocatsplash/files/patch-src__http.c @@ -0,0 +1,35 @@ +--- src/http.c.orig Wed Nov 19 16:26:07 2003 ++++ src/http.c Wed Nov 19 16:29:22 2003 +@@ -1,8 +1,10 @@ +-# include +-# include +-# include ++# include + # include ++# include + # include ++# include ++# include ++# include + # include + # include + # include +@@ -17,9 +19,6 @@ + # define BUF_SIZ 16384 + # endif + +-// not portable, apparently +-# include +- + GIOChannel *http_bind_socket( const char *ip, int port, int queue ) { + struct sockaddr_in addr; + int fd, r, n = 1; +@@ -354,7 +353,7 @@ + return -1; + } + +- r = sendfile( out_fd, in_fd, &len, s.st_size ); ++ r = sendfile(in_fd, out_fd, 0, s.st_size, NULL, &len, 0); + if (r == -1) { + g_warning("http_sendfile send: %m"); + return -1; -- cgit v1.2.3