From 82d374328faf9e69a66665e52f6f28a43dfecf3a Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 31 Oct 2017 20:31:11 -0400 Subject: [PATCH] [autobuild] allow sendfile() in cross-compile (fixes #2836) allow sendfile() in cross-compile if sys/sendfile.h header detected and sendfile() symbol detected (e.g. in libc) If sendfile() is present but always returns ENOSYS, lighttpd will be slightly less efficient, but will fall back to writev() or write() User should explicitly set server.network-backend = "writev" in lighttpd.conf on systems with broken sendfile() x-ref: "Remove check for broken sendfile implementations" https://redmine.lighttpd.net/issues/2836 --- configure.ac | 3 --- 1 file changed, 3 deletions(-) diff --git a/configure.ac b/configure.ac index f49f7b34..de4ce8e5 100644 --- a/configure.ac +++ b/configure.ac @@ -1141,9 +1141,6 @@ if test "$ac_cv_func_sendfile" = yes; then AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile]) ] ) - else - AC_MSG_RESULT([no, cross-compiling]) - AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile]) fi fi