diff options
-rw-r--r-- | player/lua.c | 1 | ||||
-rw-r--r-- | 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 <sys/types.h> #include <sys/wait.h> #include <errno.h> +#include <signal.h> // Normally, this must be declared manually, but glibc is retarded. #ifndef __GLIBC__ @@ -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()', |