Check for sendfile() only if header sys/sendfile.h is detected.

Hopefully there aren't any non-Linux platforms that have
have sys/sendfile.h and incompatible sendfile()
This commit is contained in:
Sergey Popov 2009-04-23 23:00:59 +00:00
parent f59d1604fd
commit 3b600d3a6e

View file

@ -248,7 +248,8 @@ if env["prereqs"]:
conf.CheckCHeader("poll.h", "<>")
conf.CheckCHeader("sys/poll.h", "<>")
conf.CheckCHeader("sys/select.h", "<>")
conf.CheckFunc("sendfile")
if conf.CheckCHeader("sys/sendfile.h", "<>"):
conf.CheckFunc("sendfile")
conf.CheckFunc("round")