Skip to content

Commit

Permalink
meson: use subprocess-dummy.c fallback when fork func doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
karelrooted authored and sfan5 committed Dec 3, 2023
1 parent b323d28 commit ea0e9b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ea0e9b7

Please sign in to comment.