Corrected sendfile check.
This commit is contained in:
parent
b0ff1eca97
commit
8e02b1db11
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ if env["prereqs"]:
|
|||
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.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue