From e29680daffa2a407673dbb7a9157e420ff6e0196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 2 Nov 2000 13:01:14 +0100 Subject: [PATCH] Disable use of sendfile(2). Rev: src/modules/HTTPLoop/requestobject.c:1.15 --- src/modules/HTTPLoop/requestobject.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/HTTPLoop/requestobject.c b/src/modules/HTTPLoop/requestobject.c index 213b82d114..402d17aa84 100644 --- a/src/modules/HTTPLoop/requestobject.c +++ b/src/modules/HTTPLoop/requestobject.c @@ -1,5 +1,5 @@ /* - * $Id: requestobject.c,v 1.14 2000/08/17 19:21:41 grubba Exp $ + * $Id: requestobject.c,v 1.15 2000/11/02 12:01:14 grubba Exp $ */ #include "global.h" @@ -54,6 +54,11 @@ /* Used when fatal() can't be. */ #define DWERROR(X) write(2, X, sizeof(X) - sizeof("")) +/* All current implementations of sendfile(2) are broken. */ +#ifndef HAVE_BROKEN_SENDFILE +#define HAVE_BROKEN_SENDFILE +#endif /* !HAVE_BROKEN_SENDFILE */ + #ifdef HAVE_BROKEN_SENDFILE #ifdef HAVE_SENDFILE #undef HAVE_SENDFILE -- GitLab