mirror of https://github.com/mpv-player/mpv
meson: use subprocess-dummy.c fallback when fork func doesn't exist
This commit is contained in:
parent
b323d2877a
commit
ea0e9b74a3
|
@ -399,7 +399,11 @@ endif
|
|||
|
||||
if posix
|
||||
path_source = files('osdep/path-unix.c')
|
||||
subprocess_source = files('osdep/subprocess-posix.c')
|
||||
if cc.has_function('fork', prefix : '#include <unistd.h>')
|
||||
subprocess_source = files('osdep/subprocess-posix.c')
|
||||
else
|
||||
subprocess_source = files('osdep/subprocess-dummy.c')
|
||||
endif
|
||||
sources += files('input/ipc-unix.c',
|
||||
'osdep/poll_wrapper.c',
|
||||
'osdep/terminal-unix.c',
|
||||
|
|
Loading…
Reference in New Issue