Author: suokko
Date: Wed Jun 11 10:32:15 2008
New Revision: 27100
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27100&view=rev
Log:
Added check if sendfile is in glibc
Modified:
trunk/src/network_worker.hpp
Modified: trunk/src/network_worker.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_worker.hpp?rev=27100&r1=27099&r2=27100&view=diff
==============================================================================
--- trunk/src/network_worker.hpp (original)
+++ trunk/src/network_worker.hpp Wed Jun 11 10:32:15 2008
@@ -14,6 +14,15 @@
#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