1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

meson: use subprocess-dummy.c fallback when fork func doesn't exist

This commit is contained in:
karelrooted 2023-12-02 23:39:19 +08:00 committed by sfan5
parent b323d2877a
commit ea0e9b74a3

View File

@ -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',