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:
parent
f59d1604fd
commit
3b600d3a6e
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue