Author: loonycyborg
Date: Fri Apr 24 01:00:59 2009
New Revision: 35150
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35150&view=rev
Log:
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()
Modified:
trunk/SConstruct
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=35150&r1=35149&r2=35150&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Fri Apr 24 01:00:59 2009
@@ -248,7 +248,8 @@
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")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits