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
1 changed files with 5 additions and 1 deletions

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