From e7ae8b17124e429bfe4cb64b2c8efb447cc0eccc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 19 Oct 2000 15:56:21 +0200
Subject: [PATCH] Disable all use of sendfile(2).

Rev: src/modules/files/sendfile.c:1.48
---
 src/modules/files/sendfile.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/modules/files/sendfile.c b/src/modules/files/sendfile.c
index 6b4b40f4ce..693cfedb27 100644
--- a/src/modules/files/sendfile.c
+++ b/src/modules/files/sendfile.c
@@ -1,5 +1,5 @@
 /*
- * $Id: sendfile.c,v 1.47 2000/10/07 13:12:12 grubba Exp $
+ * $Id: sendfile.c,v 1.48 2000/10/19 13:56:21 grubba Exp $
  *
  * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously.
  *
@@ -105,6 +105,13 @@
 #undef THIS
 #define THIS	((struct pike_sendfile *)(Pike_fp->current_storage))
 
+/*
+ * All known versions of sendfile(2) are broken.
+ */
+#ifndef HAVE_BROKEN_SENDFILE
+#define HAVE_BROKEN_SENDFILE
+#endif /* !HAVE_BROKEN_SENDFILE */
+
 /*
  * Disable any use of sendfile(2) if HAVE_BROKEN_SENDFILE is defined.
  */
-- 
GitLab