mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
fix build on OS X and BSD
This commit is contained in:
parent
78151efc7e
commit
7e66a35969
@ -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__
|
||||
|
5
wscript
5
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()',
|
||||
|
Loading…
Reference in New Issue
Block a user