summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-10-31 20:31:11 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-11-02 00:41:53 -0400
commit82d374328faf9e69a66665e52f6f28a43dfecf3a (patch)
tree48b1ebabf73ae384232c8b844dc31b77a3227b2f
parent142971a80c47e319b1362bf46b85536391dce756 (diff)
downloadlighttpd1.4-82d374328faf9e69a66665e52f6f28a43dfecf3a.tar.gz
lighttpd1.4-82d374328faf9e69a66665e52f6f28a43dfecf3a.zip
[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
-rw-r--r--configure.ac3
1 files changed, 0 insertions, 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