From 7e66a3596949e24a4ff7243103bc21c9f29aaaee Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 19 Oct 2014 12:55:29 +0200 Subject: fix build on OS X and BSD --- player/lua.c | 1 + wscript | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/player/lua.c b/player/lua.c index d99a37a781..39a911ea35 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1162,6 +1162,7 @@ static int script_join_path(lua_State *L) #include #include #include +#include // Normally, this must be declared manually, but glibc is retarded. #ifndef __GLIBC__ diff --git a/wscript b/wscript index c95984d331..dc7871dca3 100644 --- a/wscript +++ b/wscript @@ -198,8 +198,9 @@ iconv support use --disable-iconv.", 'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)') }, { 'name': 'posix-spawn', - 'desc': 'posix_spawn()', - 'func': check_statement('spawn.h', 'posix_spawnp(0,0,0,0,0,0)') + 'desc': 'POSIX spawnp()/kill()', + 'func': check_statement(['spawn.h', 'signal.h'], + 'posix_spawnp(0,0,0,0,0,0); kill(0,0)') }, { 'name': 'glob', 'desc': 'glob()', -- cgit v1.2.3