From b8430dcff704319f01279f1c399af4faf9cb9cb2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 12 Jun 2008 08:25:36 +0000 Subject: Readded unfindes Boa 0.94.14rc21 --- libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch (limited to 'libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch') diff --git a/libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch b/libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch new file mode 100644 index 0000000000..6da0ebaa30 --- /dev/null +++ b/libs/sgi-webuci/boa-patches/020-sendfile_ENOSYS.patch @@ -0,0 +1,15 @@ +Index: boa-0.94.14rc21/src/pipe.c +=================================================================== +--- boa-0.94.14rc21.orig/src/pipe.c 2007-08-08 20:03:29.000000000 -0400 ++++ boa-0.94.14rc21/src/pipe.c 2007-08-08 20:03:45.000000000 -0400 +@@ -215,7 +215,9 @@ + } + req->ranges->start = sendfile_offset; + if (bytes_written < 0) { +- if (errno == EWOULDBLOCK || errno == EAGAIN) { ++ if (errno == ENOSYS) { ++ return io_shuffle(req); ++ } else if (errno == EWOULDBLOCK || errno == EAGAIN) { + return -1; /* request blocked at the pipe level, but keep going */ + } else if (errno == EINTR) { + goto retrysendfile; -- cgit v1.2.3