mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +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/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__
|
||||||
|
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)')
|
'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()',
|
||||||
|
Loading…
Reference in New Issue
Block a user