fix build on OS X and BSD

This commit is contained in:
Stefano Pigozzi 2014-10-19 12:55:29 +02:00
parent 78151efc7e
commit 7e66a35969
2 changed files with 4 additions and 2 deletions

View File

@ -1162,6 +1162,7 @@ static int script_join_path(lua_State *L)
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <errno.h> #include <errno.h>
#include <signal.h>
// Normally, this must be declared manually, but glibc is retarded. // Normally, this must be declared manually, but glibc is retarded.
#ifndef __GLIBC__ #ifndef __GLIBC__

View File

@ -198,8 +198,9 @@ iconv support use --disable-iconv.",
'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)') 'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)')
}, { }, {
'name': 'posix-spawn', 'name': 'posix-spawn',
'desc': 'posix_spawn()', 'desc': 'POSIX spawnp()/kill()',
'func': check_statement('spawn.h', 'posix_spawnp(0,0,0,0,0,0)') 'func': check_statement(['spawn.h', 'signal.h'],
'posix_spawnp(0,0,0,0,0,0); kill(0,0)')
}, { }, {
'name': 'glob', 'name': 'glob',
'desc': 'glob()', 'desc': 'glob()',