Author: loonycyborg
Date: Thu Jun 5 15:07:20 2008
New Revision: 27003
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27003&view=rev
Log:
Corrected sendfile check.
Modified:
trunk/SConstruct
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27003&r1=27002&r2=27003&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Thu Jun 5 15:07:20 2008
@@ -177,7 +177,9 @@
if env['fribidi']:
env['fribidi'] = conf.CheckLibWithHeader('fribidi',
'fribidi/fribidi.h', 'C', 'fribidi_utf8_to_unicode(NULL,0,NULL);') or
Warning("Can't find libfribidi, disabling freebidi support.")
- env['sendfile'] = conf.CheckLibWithHeader('sendfile', 'sys/sendfile.h',
'C', 'sendfile(0,0,0,0);') or Warning("Can't find sendfile, disabling sendfile
support.")
+ env['sendfile'] = False
+ if sys.platform == "linux2":
+ env['sendfile'] = conf.CheckCHeader('sys/sendfile.h', '<>') or
Warning("Can't find sendfile, disabling sendfile support.")
have_server_prereqs = conf.CheckSDL('SDL_net') or Warning("Server
prerequisites are not met. wesnothd and campaignd cannot be built.")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits