Author: suokko
Date: Thu Jun 5 22:14:48 2008
New Revision: 27005
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27005&view=rev
Log:
Added detection if sendfile is in system
Modified:
branches/1.4/src/network_worker.hpp
Modified: branches/1.4/src/network_worker.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/network_worker.hpp?rev=27005&r1=27004&r2=27005&view=diff
==============================================================================
--- branches/1.4/src/network_worker.hpp (original)
+++ branches/1.4/src/network_worker.hpp Thu Jun 5 22:14:48 2008
@@ -14,6 +14,14 @@
#ifndef NETWORK_WORKER_HPP_INCLUDED
#define NETWORK_WORKER_HPP_INCLUDED
+
+// Check if sendfile function is implemented by glibc
+// It is linux only extension
+#ifdef __GNUC_PREREQ
+#if __GNUC_PREREQ(2,1)
+#define USE_SENDFILE
+#endif
+#endif
#include <map>
#include <vector>
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits